Exclude current parent page from pagelist
Permalink 1 user found helpful
I have a bunch of 3rd level pages (products), each with the 2nd level pages (categories) in a page list block. I want to remove the current parent (category) page on each product page. So I have this:
Home
-Blue
- -Sky
- -Sea
-Yellow
- -Sun
- -Banana
-Orange
etc...
If I am looking at 3rd level product page e.g. 'Sky', I only want the categories 'Yellow' and 'Orange' to show in my page list, and not Blue.
I've looked at this post about not showing the current page as a starting point, but can't work out the correct syntax:
http://www.concrete5.org/community/forums/customizing_c5/exclude-cu...
Thanks.
Home
-Blue
- -Sky
- -Sea
-Yellow
- -Sun
- -Banana
-Orange
etc...
If I am looking at 3rd level product page e.g. 'Sky', I only want the categories 'Yellow' and 'Orange' to show in my page list, and not Blue.
I've looked at this post about not showing the current page as a starting point, but can't work out the correct syntax:
http://www.concrete5.org/community/forums/customizing_c5/exclude-cu...
Thanks.
Great, that works a treat.
I had actually ended up doing it with Auto nav which worked fine, but this is much more straightforward, and better for my particular application.
Nice one - cheers!
In case anyone else needs it, I've attached the custom template file here.
I had actually ended up doing it with Auto nav which worked fine, but this is much more straightforward, and better for my particular application.
Nice one - cheers!
In case anyone else needs it, I've attached the custom template file here.
the page list should not include the parent page of the page being viewed.