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

Support archive

Monthly menu starting from this month.

Richard 7 Jan 2016 11:12 question, complete

Hi, I'm sure this is a simple one, but I'm having a bit of hassle with it.
I need to display an event menu containing three months, starting from the current month. ie: In Jan the menu reads "Events in : JAN | FEB | MAR".

I'm using the following code, but can't get it to start with the current month. Any ideas? Any help is appreciated!

{exp:low_events:archive channel="event" show_passed="yes" unit="month" show_empty="yes" limit="3"}

<li {if "{segment_2}" == "{year}-{month_num}"}class="selected"{/if}><ahref="{path="events/{date_url}"}">{month_short} </a></li>

{/exp:low_events:archive}

Replies

  1. Low 7 Jan 2016 12:31

    Not as simple as you might think! Right now, the Archive tag doesn't accept a parameter to set the start date/month/year. In your case it will start with the first month that contains an event.

    Looks like you might need a custom plugin or some php in your template to generate that list.