Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 16

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 24.05.2005, 10:57   #1 (permalink)
Mamber
 
dskater's Avatar
 
Join Date: Apr 2005
Posts: 93
dskater is on a distinguished road
Default Template and mainbody() position

Hi mambers,
I've a little trouble...
I've a script like this in index.php:

PHP Code:
<?php if (mosCountModules('right')) {?>
    <div class="one">
        <?php mosMainBody(); ?>
    </div>
    <div class="two">
        <?php mosLoadModules ('right'?>
    </div>
<?php } else {?>
    <div class="three">
        <?php mosMainBody(); ?>
    </div>
<?php }?>
However, if in frontpage news I click the "read more" link, the modules equally appear in other pages.

How can I solve it? Thanks.

ps: sorry for my english!
dskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 24.05.2005, 16:23   #2 (permalink)
Junior Mamber
 
AllMaMbo's Avatar
 
Join Date: Apr 2004
Location: East Coast
Posts: 47
AllMaMbo is on a distinguished road
Send a message via MSN to AllMaMbo
Default Re: Template and mainbody() position

well the code you've posted seems to be correct, it should work
(hide right position if there is nothing present)
Did you check if infact your right modules are hidden on the page/s in question?
__________________
Templates, Tutorials, MOS newbie corner.
AllMambo.com
AllMaMbo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.05.2005, 12:39   #3 (permalink)
Mamber
 
dskater's Avatar
 
Join Date: Apr 2005
Posts: 93
dskater is on a distinguished road
Default Re: Template and mainbody() position

Thanks for reply...
Yes, the modules are set to be visible only in frontpage:

module 1 > mainmenu | Home
module 2 > mainmenu | Home


CSS:
Quote:
.three {width: 100%}
For example, these links:

read more link (blog)...it's ok!
index.php?option=com_content&task=view&id=20&Itemi d=35

read more link (news)...don't work correctly!
index.php?option=com_content&task=view&id=13&Itemi d=1
dskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.05.2005, 12:15   #4 (permalink)
Mamber
 
dskater's Avatar
 
Join Date: Apr 2005
Posts: 93
dskater is on a distinguished road
Default Re: Template and mainbody() position

I have created a new section and have solved!

dskater 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
Howto assign an image to a page outside mainbody teb Mambo 4.5.1 'How Do I' Questions 4 12.06.2005 17:29
Template e gestione posizione del mainbody() dskater Templates 6 26.05.2005 12:14
Template Mainbody question jimmcdon Mambo 4.5.1 'How Do I' Questions 2 11.05.2005 09:04
Gallery Menalto and Sample_Whitemix Template won't work daetty Template Discussions 0 09.05.2005 23:24
Help with nonstandard layout scenario, and excluding one page from template switcher Soundloop Mambo 4.5.1 'How Do I' Questions 0 25.02.2005 00:00


All times are GMT +2. The time now is 10:06.

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.