Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 27

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 18.09.2004, 17:38   #1 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Location: Groningen - The Netherlands
Posts: 4
Mr. Horse is on a distinguished road
Default How to put a banner on the front page only

With Mambo 4.5.1 RC4, I've been trying to get the banner module to be displayed on the front page only. I tried to edit the module by selecting just mainmenu / Home as the page on which to show the banner module.

I've seen this method working with user menus and other modules. But with the banner module it seems to be everywhere (or nowhere at all by not publishing the module). Selecting any combination of pages on which to show the banner module all have the same effect: it's shown everywhere...

Did I overlook something here or am I to be the proud (but slightly sad) discoverer of a whole new bug?

Any feedback would be very welcome!
__________________
No Sir, I didn't like it.

Last edited by Mr. Horse; 18.09.2004 at 17:40. Reason: some typos
Mr. Horse is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 18.09.2004, 18:38   #2 (permalink)
Elite Mamber
 
twysm's Avatar
 
Join Date: Apr 2004
Location: /dev/peru/lima
Posts: 1,008
twysm can only hope to improve
Send a message via ICQ to twysm Send a message via MSN to twysm Send a message via Yahoo to twysm
Default Re: How to put a banner on the front page only

I think thats a bug and you may post it on the bugtracker. But you could also do this:

PHP Code:
<?php
 
if($option=="com_frontpage"){
     
mosLoadComponent"banners" );
 }
?>
Put that in your template where you want the banner to appear. I hope this could help.
__________________
www.ezwp.com
www.diginetperu.com
twysm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.09.2004, 18:53   #3 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Location: Iceland
Posts: 48
sokratex is on a distinguished road
Default Re: How to put a banner on the front page only

It works in my testsite, just doing what you described.
__________________
---there is no honor in breaking in through an open door--
sokratex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.09.2004, 14:34   #4 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Location: Groningen - The Netherlands
Posts: 4
Mr. Horse is on a distinguished road
Default Re: How to put a banner on the front page only

After some research (and sleep!) I found that the above problem that seemed a bug actually isn't a bug but a feature!!

In the template code, a component is being put in the page, not a module. Therefore, changes in the page placement of the module had no effect. Changing the code to display a banner module did the trick.

So use the code below in order to put a module of the banners on the page and you can use the module controls to determine at what pages a banner is to be displayed:

PHP Code:
<?php mosLoadModules 'banner' ); ?>
__________________
No Sir, I didn't like it.
Mr. Horse is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error flagging content for front page - image attached divamissx Mambo 4.5 'How Do I' Questions 2 13.09.2004 04:47
Wrapped Page on Front Page of Site divamissx Mambo 4.5 'How Do I' Questions 1 11.09.2004 05:48
Put a image only on front page brucesinner Mambo 4.5 'How Do I' Questions 1 17.08.2004 11:43
Adding extra meta tags to individual content on front page wooly Mambo 4.5 General Talk 2 08.07.2004 13:18
news module and front page millo105 Module 'How Do I' Questions 0 09.06.2004 19:40


All times are GMT +2. The time now is 13:41.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.