|
Editing the Article Index Design
Sample Code for Your "Front Page" and "Archive Pages" Templates
You can use the exact same code for both your "Front Page" and "Archive Pages" templates. If you use the same code, your Front Page will look the same as your Archive Pages. If you use different code, they'll look different.
Option 1 - Basic Code for Displaying Any Block of Entries
Any time you want to display multiple entries (i.e. a "block of entries") on a single page, you'll need to use the basic Entry Block Tags - and - wrapped around a single, sample entry (every entry in the block will be formatted using the code from that sample entry).
Here's some sample code for the Article Index template, along with an explanation of how it works:
|
Use This Sample Code:
< ENTRYBLOCK > < P>< A href="< $Page_Link$ >"> < B><$Title$>< /B>< /A>
< I>< $Summary$ >< /I>
by <$Author$>< /P> < /ENTRYBLOCK>
|
And You'll Get a Page That Looks Like:
|
Title #1 Summary #1 by Author #1
Title #2 Summary #2 by Author #2
Title #3 Summary #3 by Author #3
etc. | |
Option 2 - Additional Code for Displaying Entries Grouped by Date
In some cases you may want to group your entries by specific periods of time (e.g. group your Articles by month or by week).
If you want to display something only at the beginning or end of each group of entries (as opposed to the beginning or end of each individual entry), you'll need to add a set of Date Block Tags - and - around your Entry Block Tags.
Here's some sample code to show how to do just that:
|
Use This Sample Code:
< DATEBLOCK >
< $Header_Date$ > < ENTRYBLOCK> < A href="< $Page_Link$ >"> < B>< $Title$ >< /B>< /A>
< I>< $Summary$ >< /I>
by < $Author$ >
< /ENTRYBLOCK> < HR > < /DATEBLOCK>
|
And You'll Get a Page That Looks Like:
|
June 2001
Title #1 Summary #1 by Author #1
Title #2 Summary #2 by Author #2
July 2001
Title #3 Summary #3 by Author #3
etc. |
|
Back to Top
Back to WebCrimson Support
|