Archives By Month
Saturday, May 01, 2004
The default archive template that comes with Expression Engine didn’t fit my needs. Listing all the entries by month and year is alright if you plan on having a limited number of postings. As your site starts to grow this page will get VERY long.
The following will display each month and year and provide a link to drill down to that specific time period.
<h2>Browse Entries By Month</h2>
<ul>
{exp:weblog:entries weblog=”blogname” orderby="date" sort="desc" limit="100"}
{date_heading display="monthly"}
<li><a href="{path=”blogname”}{entry_date format="%Y"}/{entry_date format="%m"}">{entry_date format="%F"} {entry_date format="%Y"}</a></li>
{/date_heading}
{/exp:weblog:entries}
</ul>
posted in: Coding, Expression Engine | Comments (1)