Textpattern Plugin | rss_suparchive_menu

rss_suparchive_menu listing The newest addition to the rss_suparchive plugin is the ability to display archive pages based on the URL. For example, a URL of /archive/2005/02 will display all articles from February 2005. Similarly, a URL of /archive/2005 will display all articles from 2005.

The rss_suparchive menu tag generates month or year listings including article counts within each grouping. The menu takes advantage of Textpattern RC3 internationalization to display month names based on your current locale. You have the ability to choose MONTH or YEAR display mode, customize a heading for the list, link to a specific section or the current one, show past or future articles and limit the number of months or years in the list. The plugin is fully documented below as well as on the original rss_suparchive page.

NOTE: This version of the rss_suparchive (0.10) works only on RC3. I don’t know the exact revision number you need but I recommend updating from SVN before installing to ensure that the rss_suparchive_menu will work.

Download rss_suparchive


mode
Accepts one of 2 options “MONTH” or “YEAR”. By default (MONTH) will display a list of months and the number of posts in each with a URL of /yourarchive/yyyy/mm. Selecting “YEAR” will display a list of years and the number of posts in each with a URL of /yourarchive/yyyy.
Default: ‘MONTH’
Example: timeframe=”YEAR”

section
Accepts a comma separated list of sections that posts are listed from. NO spaces after commas.
Default: ‘article’
Example: sections=”sectionOne,sectionTwo”

linktosection
Denotes the section that the months will link to when the URL is built.
Default: ’$s (current global section)’
Example: linktosection=”archive”

timeframe
Accepts one of 3 options “PAST”, “FUTURE” or “ALL”. By default (PAST) will display articles with a posted date before the current date/time. Selecting FUTURE will display articles with a posted date after the current date/time. Selecting ALL will display all articles regardless of posted date.
Default: ‘PAST’
Example: timeframe=”FUTURE”

limit
The number of months that will be shown in the listing.
Default: ’6’
Example: limit=”3”

showcount
Shows the number of articles posted in a month next to the name of the month.
Default: ’1’
Example: showcount=”0”

countlabel
Label text that appears next to the article count.
Default: ’’
Example: countlabel=” entries”

showheader
Shows an XHTML heading tag () above the month list.
Default: ’0’
Example: showheader=”1”

headerlabel
The text that appears within the header tags.
Default: ’Monthly Archives’
Example: headerlabel=”Posts By Date”

headerlevel
The XHTML heading tag level (1,2,3,4,5 or 6).
Default: ’2’
Example: headerlevel=”3”

Some additional conveniences built into the tag include:

  • the addition of an id named rssMenu to the ul tag
  • the addition of a class named rssMonthCount to the monthly post totals

Comments

25. February 2005

This is lovely. Thank you!

26. January 2007

Hi, this plug-in works in TXP v. 4.0.4?
Thank you!

10. February 2008

Hi,

Sorry for my bad English. The rss_suparchive_menu don’t works for me.

The plugin creates the month list correctly, but the links like:

section/year/month

don’t work.

What’s wrong?

Thanks.

Add a comment

You may use textile in your comment. Gravatars are enabled. Your email will not be displayed and will remain private. I reserve the right to edit or delete comments.





Textpattern Solutions

Textpattern Solutions

Textpattern Solutions is the first book published on Textpattern.

details at friends of ED or the official book website.

buy it at amazon.com