Re: If statement with category
I'll try the easy answer first.... Did you try nesting the statement:
{if ($is_categorized eq 'y') and ($parentId eq '2')}{content id=1}{/if}
Also, try putting a {$parentId} just before the if statement to display the actual value of parentId.
HTH,
-Rick
> 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 will work — {if $is_categorized eq 'y'}{content id=1}{/if} — showing content on any page that is categorized. But how can I limit the display to a single particular category?
>
> TIA.
>
> — Gary - zukakakina.com
>