Hi,
I’m having a little trouble with our events calendar and EE pagination & Switchee.
Default page which shows the latest 12 events with pagination at the bottom. Two additional pages, 2015 & 2016 which shows events from the selected year.
So, when I’m on the main page (events) and I pagination through (events/P12) it works as expected.
When I select 2015 (events/2015) everything works as expected. Paginating through the selected year and the exp loop returns nothing (events/2015/P12) however, in theory this is the exact same page as (events/P12) as it’s showing events by date and these are the latest… so I’ve moved the page into a embed and having the same template called at (events/P12) & (events/2015/P12) yet it doesn’t work when selecting the year but works fine without the year.
I thought it may have something to do with a conditional based on the segment or a parameter in the exp loop, I stripped everything down to the bare bones and still I’m having no luck.
My exp loop is as follows
{exp:channel:entries
channel="events"
show_future_entries="yes"
orderby="date"
sort="asc"
disable="comments|member_data|trackbacks"
limit="12"
stop_before="2015-12-31 23:59"
dynamic="yes"
status="NOT closed"
}The segment conditionals are laid out like this (wrote in shorthand to save space)
{segment 3}
{case = pagination}
{segment 2 case = 2015}
{segment 2 case = 2016}
{case = (NULL)}
{segment 2 case = (NULL)}
{segment 2 case = Pagination}
{segment 2 case = 2015}
{segment 2 case = 2016}Am I over looking something?
Thanks for your help.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.