Re: If statement with category
> I want to have a dynamic content block displayed by tiki-show_page.tpl only for a particular Category. I tried
> {if $is_categorized eq 'y' and $parentId eq '2'}{content id=1}{/if} but that doesn't work.
This is the solution provided by luciash and toggg on #tikiwiki:
Copy to clipboard
{foreach name=u key=k item=i from=$catp}{if $k eq '2'}{content id=1}{/if}{/foreach}
So if the page's category is 2, then content id=1 is displayed. I have a group of pages that I want to have some not-editable-by-nonadmins content displayed at the top, and this does the job.
Thanks again to those two for the answer.
-- Gary - zukakakina.com