Page 1 of 1

[solved] How to show content only on some pages

Posted: Wed May 07, 2008 10:28 pm
by matrlx
Hello,
I want to show some html that I did only on the Home page, so I did this tag {meuphp} that do this:

if ($node->menutext == 'home') echo "html code"; else echo "";


But when I enter index.php?page=home the html code is not showing =/ why ? I already tried $page and $node instead of $node->menutext


Help please.

Re: How to show content only on some pages

Posted: Wed May 07, 2008 10:31 pm
by calguy1000
{if $page_alias == 'home'}You're on the home page{/if}

Re: How to show content only on some pages

Posted: Thu May 08, 2008 12:14 pm
by matrlx
Thank you! It worked :)