Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 707 Bytes

readme.textile

File metadata and controls

20 lines (11 loc) · 707 Bytes

YearList 2.1

The Year Listing plugin is a simple way to get a distinct 4 digit year for your entries. This way you can list out years for archives.

Now, MSM-compatible!

{exp:yearlist channel="yourchannel" category="1" site="1"}

{year}

{/exp:yearlist}

That will return an array of years. Use {year} to print them to the screen and wrap in any markup needed. There are currently no line breaks or HTML associated with this plugin.

The category parameter is optional, and if you leave it out, the plugin will search across all categories. The site parameter is optional, and if you leave it out, the plugin will search the default site.

This plugin requires ExpressionEngine 2.0.