Page 1 of 1

[SOLVED] News module on homepage only

Posted: Mon Jul 23, 2007 4:07 pm
by johanna
Hello!

I have been searching the forum but can't find an answer to this... I would like the news module and a global content block that I have created to reside on my homepage only, not on the rest of the pages. How do I achieve this?

Thank you!!

Johanna

Re: News module on homepage only

Posted: Mon Jul 23, 2007 5:18 pm
by savagekabbage
There are a few ways you can achieve this.  One way would be to create a new template just for use on the home page.

Another way would be to put an {if} statement in the template.  The templates are smarty based so any smarty tags will work.
Something like this should work:

{if $page_alias='home'}
    {global_content name='home_news'}
{/if}

Re: News module on homepage only

Posted: Mon Jul 23, 2007 7:50 pm
by johanna
Doh! I am such a dumbo...! Didn't think of the template idea, works a treat. Thank you so much for pointing me in the right direction, much appreciated!!!!

Johanna