Did you want something like this: http://eehowto.com/index.php/howto/archives
I used:
{exp:channel:entries channel="howto" orderby="date" sort="desc" limit="100" disable="pagination|custom_fields|categories|member_data"}
{date_heading display="yearly"}
<h2 class="title">{entry_date format="%Y"}</h2>
{/date_heading}
{date_heading display="monthly"}
<h3 class="date">{entry_date format="%F"}</h3>
{/date_heading}
<ul>
<li><a href="http://{title_permalink=">{title}</a></li>
</ul>
{/exp:channel:entries}
Will that work for you?
I have a similar, but slightly different issue. Sue’s solution gets me going in the right direction, but for my particular situation I have two issues. What I want to do is display a single year of archives grouped by month (which is easily done using the channel entries code provided by Sue). Where I have issue is that our database and list of articles is large. I have over 3,000 entries for a given year and when I adjust the ‘limit=’ parameter I get a ‘Fatal error: Allowed memory size of 268435456 bytes exhausted’ message even though I I have 256M allocated. The memory limit could be raised, but the reality is that the channel entries query is just too big with that many records. The other thing is that I really don’t want to display ALL the entries for each month. what I want is to show the first X number of records for each month, say 5, and then provide a link to a separate monthly archive page for that month and year. So the structure I want to achieve is this:
2012
- January
- Article 1
- Article 2
- Article 3
- Article 4
- Article 5
- Link to all January 2012 articles…
- February
- Article 1
- Article 2
- Article 3
- Article 4
- Article 5
- Link to all February 2012 articles…
etc.
Currently the way I ended up achieving this was to use the Low Yearly Archives add-on and then from within it’s ‘month’ loop call a nested channel entries tag passing the year, month, as well as limit parameters. This is working, but is also not very efficient (~10-12 seconds and ~290+ queries in an average year. Before caching). Since it’s an archive I can cache the heck out of it, but still. I’m open for more elegant solutions. Any suggestions?