Page 1 of 1

If Specific Page in Smarty

Posted: Wed Dec 01, 2010 9:43 am
by emorling
How do I make a conditional tag in Smarty for a specific page.

I tried this, but it didn't work.

Code: Select all

{if $content_obj->mName eq 'MY_PAGE'}
 {MY_UDT}
{/if}
Any ideas?

Re: If Specific Page in Smarty

Posted: Wed Dec 01, 2010 10:25 am
by RonnyK
{if $page_alias=='the-alias-of-the-page'}
...
{/if}

Ronny

Re: If Specific Page in Smarty

Posted: Wed Dec 01, 2010 8:08 pm
by emorling
Thanks! Verified and works like a charm.  ;D