Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

ryanirelan/ri.yearlist.ee_addon.2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

YearList 2.1

Get a four digit year for your entries.

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

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

	{years}

{/exp:yearlist}

That will return an array of years. Use {years} (plural, to avoid a variable conflict) to output to the template and wrap in any markup needed. There are currently no line breaks or HTML associated with this plugin. To get an unordered list with the years, you want do something like this:

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

	<li>{years}</li>

{/exp:yearlist}
</ul>

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 or greater.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages