Templates

How can I customize my archive list?

Scenario:
"I want to change how the <%archivedaylist%> variable is formatted. How can I do this?"

Solution:
Create a new template within the Admin section of Nucleus and name it to whatever you like and edit it. Scroll down the page until you find the "Archive Lists" section. This is where you can make your customizations.

Archive List Header: anything in this part will be output before the entire archive list.
Archive List Item: this controls how each line of the archive list will look like.
Archive List Footer: anything in this part will be output after the entire archive list.

Example: If you want a link in your navigation bar that links to the archive for the current day (e.g. a "Today's posts" link) just add this to the "Archive List Header" section:

<ul>

Add this to your "Archive List Item" section:

<li> <a href="index.php?blogid=<%blogid%>&archive=%Y-%m-%d">%d %B %Y</a></li>

And finally, add this to your "Archive List Footer" section:

</ul>

The date variables uses standard PHP format. The last step is to put <%archivedaylist%> anywhere you want it to appear in your skin.

Original forum thread (thanks, roel & Sephiros!):
http://forum.nucleuscms.org/viewtopic.php?t=9659

section: Templates | submitted by Leng on 2005.Dec.10 | 3248 views

item rate
Total votes: 3 - Rating: 5.67

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10