0

I am trying to use low variables to create a dynamic page that shows all the entries from a given year and am having some difficulty in creating the resulting dynamic page.

  • What difficulty? What have you tried? Post any code that you have? How are you using Low Variables for this? – Anna_MediaGirl Feb 27 '13 at 21:23
  • Welcome to Stack Exchange. Please take a moment to read over the FAQ, then edit your question with as many extra details as you can (such as: what difficulty? what have you tried? what happened when you tried that?). Thanks :) – Adrian Macneil Feb 28 '13 at 14:52
5

Have you considered another of Low's add-ons? Low Yearly Archives

| improve this answer | |
1

You can also try adding a dynamic url parameter to the channel:entries tag. I had a site where I needed yearly posts with pagination and used the following:

{exp:channel:entries channel="{channel_name}" dynamic="no" 
    start_on="{if segment_4}{segment_4}-01-01 00:01{/if}"
    stop_before="{if segment_4}{segment_4}-12-31 24:59{/if}"}

   {!-- content goes here --}

{/exp:channel:entries}

My {segment_4} was just a 4 digit year like 2012 Not the most elegant solution in the world, but it worked. :)

| improve this answer | |
  • Or you can use the year= parameter: ellislab.com/expressionengine/user-guide/modules/channel/… :) – Lisa Feb 28 '13 at 18:33
  • @lisa-wess That indeed seems much easier. :) Has that always been there or was that added in a more recent release? I swear I checked the documentation, but I might have just missed it... – Kara Todd Feb 28 '13 at 20:08
  • That's been there as long as I can remember, but I started with EE in 2004 and I won't swear it's been in there that long. ;) – Lisa Feb 28 '13 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.