ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to show entries from specific year using URL?

November 16, 2011 5:49am

Subscribe [2]
  • #1 / Nov 16, 2011 5:49am

    Cubic

    5 posts

    I would like to be able to filter my entries by year using the page URI in the same way I can by year/month

    Something like

    myurl.com/archive/2011/02

    will happily display entries from that month, however

    myurl.com/archive/2011

    returns no articles.

    Is there a way to do this without setting any extra parameters in my entries loop?

    I had hoped EE would have this already built in as it is pretty basic functionality.

  • #2 / Nov 16, 2011 9:32am

    I’ll post this here too…

    You can take a look at http://expressionengine.com/wiki/Yearly_Archives which was for EE1 but should give you the idea. Else the quickest way may be to use http://devot-ee.com/add-ons/yearly-archives Also,. I’m sure someone else will say it but no need for duplicate entries.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases