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.

2
  • What difficulty? What have you tried? Post any code that you have? How are you using Low Variables for this?
    – Anna_MediaGirl
    Commented Feb 27, 2013 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 :) Commented Feb 28, 2013 at 14:52

2 Answers 2

5

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

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. :)

3
  • Or you can use the year= parameter: ellislab.com/expressionengine/user-guide/modules/channel/… :)
    – Lisa
    Commented Feb 28, 2013 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
    Commented Feb 28, 2013 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
    Commented Feb 28, 2013 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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