All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Yearly Archive question

Chris Basnight 9 Nov 2011 23:16 question, complete

I'm using the Yearly Archives plugin on EE 1.7.1. Using it to produce a list of links to archived entries by year, but would like to automatically exclude the current year. Right now I have the end_year set to 2010... which renders the result I want. I just don't want to go in and edit this every year.

Replies

  1. Low 14 Nov 2011 08:50

    Hi Chris,

    You'd have to use PHP on Input. Something like this:

    {exp:low_yearly_archives end_year="<?=(date('Y') - 1)?>"}

  2. Chris Basnight 14 Nov 2011 16:23

    Hey there...

    I suspected as much, but thought I'd check to see if you had some super duper secret dealio for that.

    Love the plugin, by the way... it's just the ticket for some of the public sector work we do--archiving meeting minutes and agendas and such.

    Thank you very much for taking the time to reply!