[SOLVED] SMARTY: if child of page X
Posted: Sat Apr 19, 2014 9:26 am
All children of page X should use a GCB. In my template I want this logic:
But how can I do this using SMARTY?
If I can't use SMARTY for this, is there another way?
I now use SMARTY's if statement and a prefix (in the page alias) to identify these pages:
but I look for another method, since the prefix also shows up in the URL.
Frank
Code: Select all
if page == child of page X
GCB
endif
If I can't use SMARTY for this, is there another way?
I now use SMARTY's if statement and a prefix (in the page alias) to identify these pages:
Code: Select all
if $page_alias|strstr:"prefix"
GCB
endif
Frank