Building a Bug Tracker: Bug List Layout
Posted: 17 April 2008 11:06 PM   [ Ignore ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26056
Joined  05-14-2004

Before we can adventure into filtering and sorting content, we should first come up with a good display for that content.

One of the things that newcomers often don’t realize with ExpressionEngine is that the templates really are entirely under your control.  Expression assumes very little, so it follows that the weblog entries tag outputs only what you’ve told it specifically to output, and this leaves the design entirely in your hands.

While the default templates ship with CSS based layouts, a bug tracker is more tabular data.  So let’s explore how to create a table with the weblog entries tag.

Onwards!

 Signature 
Profile
MSG
 
 
Posted: 18 April 2008 08:30 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  601
Joined  09-20-2006

Thanks much for taking the time to walk us through this!  I love seeing all the different ways to accomplish something with EE.

 Signature 

MojoMotor User? Check out the MojoMotorist for MojoMotor resources and news. || MojoMotor Demo

Profile
 
 
Posted: 21 April 2008 10:39 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  334
Joined  12-21-2007

Thanks for the series, I enjoy reading it but on your last note, I’ll confess that I do not understand the rationale for the conditionals.
I mean I understand what you’re doing but it seems easier for me to just move the opening and closing table tags outside of the {exp:weblog:entries} loop.

<table><tr><td>title</td><td>title</td></tr>
{exp:weblog:entries ...}
...
{/exp:weblog:entries}
</table

Is it because you don’t want to display the table if there are no entries or is there another reason to use the conditionals? Thanks in advance for the clarification.

Profile
 
 
Posted: 21 April 2008 11:12 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26056
Joined  05-14-2004

Hi, Benoît ,

From this article:

At the same time, we don’t want the table tags outside of the weblog entries tags.  Why?  If there are no entries, we’ll have an empty table!

So, yes, that is exactly why we’re using conditionals. It’s also important to remember that these series are teaching tools, and so it’s important to cover a good many features so that those following the series can be exposed to those features.

 Signature 
Profile
MSG
 
 
Posted: 21 April 2008 11:18 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  334
Joined  12-21-2007

Understood and I know the difficulties in building good examples to demonstrate all the features. Thanks.

Profile