banner module and recognizing index page in template.

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
niedermayer
Forum Members
Forum Members
Posts: 11
Joined: Thu Feb 15, 2007 10:20 am

banner module and recognizing index page in template.

Post 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?
Last edited by niedermayer on Thu Mar 22, 2007 8:48 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: banner module and recognizing index page in template.

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Layout and Design (CSS & HTML)”