0
Welcome Guest! Login
0 items Join Now

Excluding code/scripts/components from pages

  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • Hi James!

      Thanks for answer. Right, thats exactly what I want. Just still the question is... how?

      I tried to modify the code as you showed above with:
      <?php if ($option!="com_frontpage") : ?>
      <?php mosMainbody(); ?>
      <?php endif; ?>

      but this does definatley not work.

      Thanks,

      Anastasia
    • Last Edit: 16 years 10 months ago by Anastasia Kiryanova.
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • Are you using Joomla 1.5?
    • James Spencer / Developer & Support / Hull, UK
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • Hi James!

      No, 1.0.14

      thanks!

      Anastasia

      /// 08.07.2008 ///

      Guys, does anybody have a solution for this? Plz help, must finish the site in a few days ((

      thanks!

      Anastasia
    • Last Edit: 16 years 10 months ago by Anastasia Kiryanova.
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • same question with me, how do you remove it?
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • In your second code, you don't have any spaces like in the first instance?
    • James Spencer / Developer & Support / Hull, UK
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • 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
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 10 months ago
    • Could you please provide a link to your site, and if applicable, a direct URL to the issue?
    • James Spencer / Developer & Support / Hull, UK
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 9 months ago
    • James S! wrote:
      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?
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 9 months ago
    • Something like

      <?php if ($Itemid != "39" or $Itemid != "44") : ?>
    • James Spencer / Developer & Support / Hull, UK
    • Caltucker's Avatar
    • Caltucker
    • Sr. Rocketeer
    • Posts: 159
    • Thanks: 0

    Re: Excluding code/scripts/components from pages

    Posted 16 years 8 months ago
    • 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>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?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: 16 years 8 months ago by Caltucker.

Time to create page: 0.059 seconds