Anastasia Kiryanova
Newbie
Offline
Posts: 8
|
Sorry James, did not understand exactly waht you mean. I have no spaces on all other pages than on the frontpage. Mainbody has for sure no content now but I still see an empty white area on frontpage, looking like a banner or a small empty menu bar.
Anastasia
|
|
|
|
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
Could you please provide a link to your site, and if applicable, a direct URL to the issue?
|
|
|
|
|
Logged
|
|
|
|
KeenEye Design
Newbie
Offline
Posts: 19
|
You'd use
<?php if ($Itemid != "39") : ?>
How would I add more than one page/article to this code? If I wanted my content to be omitted on several pages and not just one?
|
|
|
|
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
Something like
<?php if ($Itemid != "39" or $Itemid != "44") : ?>
|
|
|
|
|
Logged
|
|
|
|
|
Caltucker
|
How do you exclude the object from everything BUT the frontpage? In other words, I want the rocket image ONLY to appear on the homepage. In my case the homepage is Itemid 1 (not the frontpage component). The following code does the opposite: <?php if ($Itemid != "1") : ?> <a href="http://www.allieandbri.com/" title="Allie and Bri Photography" class="nounder"> <img src="<?php echo $this->baseurl;?>/templates/<?php echo $this->template; ?> /images/blank.gif" border="0" alt="Allie and Bri Photography" id="rocket" /></a> <?php endif; ?> In other words, the rocket image is on every page BUT the homepage - exactly opposite of what I want If I take out the exclamation point from the php code, then the rocket images again appears on every page
|
|
|
|
« Last Edit: August 27, 2008, 12:08:54 PM by Caltucker »
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
You'd use
<?php if ($Itemid=="1") : ?>
|
|
|
|
|
Logged
|
|
|
|
Dale M Pombrio
Newbie
Offline
Posts: 9
|
i'm trying to disable mainbody on the frontpage, but where do I put this code in index.php?
<?php if ($option != "com_frontpage") : ?> <?php mosMainbody(); ?> <?php endif; ?>
-edit- ok I got it in the right place. but there is still the "Home" section showing. how do I get rid of this?
|
|
|
|
« Last Edit: September 02, 2008, 12:42:48 PM by Dale M Pombrio »
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
Please elaborate on "Home Section"?
|
|
|
|
|
Logged
|
|
|
|
|
|
Mike VanKirk
Support
RocketTheme
Hero Rocketteer
Offline
Posts: 8261
|
Hello,
That looks like the pathway. You can turn it off in the template's index.php parameters.
|
|
|
|
|
Logged
|
|
|
|
Dale M Pombrio
Newbie
Offline
Posts: 9
|
yea that worked...but...that sucks. the pathway is very useful on the other parts of the site. do I have any other options here?
|
|
|
|
|
Logged
|
|
|
|
|
monburkina
|
James,
I am using Joomla 1.0.15 and tried adding these codes but that did not help: The box is still there- I tied changing templates to no avail.
<?php if ($option!="com_frontpage") : ?> <?php mosMainbody(); ?> <?php endif; ?>
|
|
|
|
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
It depends on the template, some templates have more code areas for the mainbody such as the component DIVs in Populus. In that case, you need to move the IF and ENDIF code to higher levels in the code.
|
|
|
|
|
Logged
|
|
|
|
|
monburkina
|
James,
I sent you an e-mail. It still does not work. Maybe I doing something wrong-
Many thanks for your support
|
|
|
|
|
Logged
|
|
|
|
James S!
Muffin Man
RocketTheme
Hero Rocketteer
Online
Posts: 40456
Firebug...Firebug...Firebug!
|
Well, you've just added <?php if ($option!="com_frontpage") : ?> <?php mosMainbody(); ?> <?php endif; ?> That is not what you do. You are suppose to modify the instance of <?php mosMainbody(); ?> to the above code. For Populus, change <div id="component-top"><div><div></div></div></div> <div id="component"><div class="left"><div class="right"> <div id="component-size"> <?php mosMainbody(); ?> </div> </div></div></div> <div id="component-bottom"><div><div></div></div></div> To <?php if ($option!="com_frontpage") : ?> <div id="component-top"><div><div></div></div></div> <div id="component"><div class="left"><div class="right"> <div id="component-size"> <?php mosMainbody(); ?> </div> </div></div></div> <div id="component-bottom"><div><div></div></div></div><?php endif; ?>
|
|
|
|
|
Logged
|
|
|
|
|