Page 1 of 1

banner module and recognizing index page in template.

Posted: Thu Mar 22, 2007 8:41 am
by niedermayer
I've installed the banner module but I only want to display my banner at the index.php-page. The problem is that it can be three URLs to it:

http://localhost/cmsms/index.php?page=home --> banner displayed
http://localhost/cmsms/index.php --> banner isn't displayed
http://localhost/cmsms/ --> banner isn't displayed.

In my template I've inserted

Code: Select all

{if $page== 'home'}
{cms_module module='Banners' category='blabla'}
{/if}
Is there a way I can the template to recognize the other two options?

Re: banner module and recognizing index page in template.

Posted: Thu Mar 22, 2007 2:43 pm
by calguy1000
why not a) put a second content block into your template in the place where you have the banners module call
            b) put the banners module call in the second content block only in the home page.