I'm using Switchee to detect pagination.
Switchee is working fine for: /new/PX/
I also use Zoo Triggers for categories and archives and have the following pagination URL's too:
- /news/category/abc/PX (segment 4)
- /news/archive/yyyy/mm/PX (segment 5)
It doesn't look like I can pass multiple values to the variable parameter so is it best to call Switchee multiple times in the template or is there a better approach?
{exp:switchee variable="{triggers:segment_2}" parse="inward"}
{case value="#^P(\d+)$#"}
// Do something
{/case}
{case value="''" default="Yes"}
// Do something
{/case}
{/exp:switchee}
{exp:switchee variable="{triggers:segment_4}" parse="inward"}
{case value="#^P(\d+)$#"}
// Do something
{/case}
{case value="''" default="Yes"}
// Do something
{/case}
{/exp:switchee}
{exp:switchee variable="{triggers:segment_5}" parse="inward"}
{case value="#^P(\d+)$#"}
// Do something
{/case}
{case value="''" default="Yes"}
// Do something
{/case}
{/exp:switchee}
Any help would be appreciated!