I'm looking for a code-snippet to put into a block. It should show an archive with a 'book-navigation'-like style. Confused? Well I would like the content of the block to look like this:

Archive
-----------------
2005
  January
  Febuary
  March
  and so on
2006

The numbers of the year should be collapsable. A click on 2005 i.e. shows all pages with articles posted in 2005. A click on the name of a month shows all pages with articles posted in that month of the selected year. That's it. No deeper selection.

Would I need a module? Would a code-snippet do? Is there allready a module that does this? Or are ther any code-snippets around I haven't found yet?

I was looking in the forum and the php-snippets section of the handbooks. Unfortunately without success ... :o(

Any help would be greatly appreciated. Thanks.

Comments

tangibre’s picture

Have you had any success with this? I am myself looking for something similar. Thought of having a list of dates and nodetitles belonging to collapsible years, much like you are thinking of. I find the Archive module to be very narrow minded, just allowing accurate dates, and not date spans, such as "/archive/2006".

Hans