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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

RI YearList EE Plugin

The Year Listing plugin is a simple way to return a list of years in which there are entries in a weblog.

For better markup control, the {count} and {total_results} variables can be used, exactly the same way as in {weblog:entries} tag.

Example usage:

{exp:yearlist weblog="yourWeblog" category="1"}

	{year}

{/exp:yearlist}
<ul>
{exp:yearlist weblog="yourWeblog" category="1"}

	<li{if count == total_results} class="last"{/if}>{year}</li>

{/exp:yearlist}
</ul>

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 linebreaks or HTML associated with this plugin.

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

This plugin will only work on ExpressionEngine 1.6.8. I also have YearList 2.0 available for ExpressionEngine 2.0.

About

ExpressionEngine plugin for listing out the years of entries in a weblog.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages