show content block only if not child of certain parent-page
Posted: Tue May 17, 2011 12:07 pm
I'm trying to NOT show a content block on pages that are child-pages of a certain category on my site.
I know how to hide a content block if the page alias is this or that, but how do I change the code to not show the content block on any page that is a child-page of a certain category?
This is the code I'm using now:
Now, I want to change this code to also effect all child pages of "about". I dont' want to manually list those pages' aliases... because editors may create new pages there.
Anyone knows of a way?
I know how to hide a content block if the page alias is this or that, but how do I change the code to not show the content block on any page that is a child-page of a certain category?
This is the code I'm using now:
Code: Select all
{if $page_alias != about}
{content block="sidebar"}
{if}
Anyone knows of a way?