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

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
 
 
Posted: 18 April 2008 08:30 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  279
Joined  2006-09-20

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

 Signature 

“I am so clever that sometimes I don’t understand a single word of what I am saying.”

Profile
 
 
Posted: 21 April 2008 10:39 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  178
Joined  2007-12-21

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 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  30060
Joined  2004-05-14

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
 
 
Posted: 21 April 2008 11:18 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  178
Joined  2007-12-21

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

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 58066 Total Logged-in Users: 29
Total Topics: 68036 Total Anonymous Users: 22
Total Replies: 366468 Total Guests: 440
Total Posts: 434504    
Members ( View Memberlist )
Newest Members:  Gonçalo Dumaswitoldbjcoxonmgopnikvetealinfiernojmp308novostudiocarlsonbtd3gvramana