0
Welcome Guest! Login
0 items Join Now

Excluding code/scripts/components from pages

  • Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • That's it! I was lost in the forest of details.
      Thank you. :)
  • Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • I have added the code

      <?php if (JRequest::getVar('view') != 'frontpage') : ?>
      <jdoc:include type="component" />
      <?php endif; ?>

      to my index page so that it will not show the main content on the front page. While the text does go away, the white box where the text should go does not. Can I remove this?
  • Re: Excluding code/scripts/components from pages

    Posted 15 years 10 months ago
    • James S! wrote:
      If you look at your index.php, look for <jdoc:include type="component" /> and you'll see the changes I made (using the code in my first post).
      How did you fix that issue with the menu item? I have seem to have the same problem

      www.servusnet.com/another
    • Clint's Avatar
    • Clint
    • Newbie
    • Posts: 11
    • Thanks: 0

    Re: Excluding code/scripts/components from pages

    Posted 15 years 8 months ago
    • I am trying to add borders to the left and right of the main body of the Afterburner template. The catch is that I don't want the borders showing up on the Front page. I tried page class suffix, but it doesn't add the suffix in the right place. Below is an example of the html involved. "component-pad" is the div tag I want to load a different css element based on whether I am on the frontpage or not. If I am not on the frontpage then I want to add the border. Is there a IF then Else statement I can put into the html to do this? Thanks for your help!
      </div>
                                          <?php endif; ?>
                                          <?php if ($this->countModules('user1 or user2 or user3')) : ?>
                                          <div id="mainmods" class="spacer<?php echo $mainmod_width; ?>">
                                              <jdoc:include type="modules" name="user1" style="afterburner" />
                                              <jdoc:include type="modules" name="user2" style="afterburner" />
                                              <jdoc:include type="modules" name="user3" style="afterburner" />
                                          </div>
                                          <?php endif; ?>
                                    <div class="component-pad">
                                              <jdoc:include type="component" />
                                          </div>
                                          <?php if ($this->countModules('user4 or user5 or user6')) : ?>
                                          <div id="mainmods2" class="spacer<?php echo $mainmod2_width; ?>">
                                              <jdoc:include type="modules" name="user4" style="afterburner" />
                                              <jdoc:include type="modules" name="user5" style="afterburner" />
                                              <jdoc:include type="modules" name="user6" style="afterburner" />
                                          </div>
                                          <?php endif; ?>
                                      </div>
                                  </div>
                              </div>
                              <?php if ($leftcolumn_width != 0) : ?>
                              <div id="col2" class="<?php echo $leftcolumn_color; ?>">
                                  <jdoc:include type="modules" name="left" style="afterburner" />
                              </div>
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Excluding code/scripts/components from pages

    Posted 15 years 7 months ago
    • Hello i try to exclude a plugin from a component, how do this ?

      thanks
    • labih's Avatar
    • labih
    • Jr. Rocketeer
    • Posts: 38
    • Thanks: 0

    Re: Excluding code/scripts/components from pages

    Posted 14 years 11 months ago
    • Could you guys please help, how to turn off breadcumbs in Crystalline at frontpage by php code (not by always publishing/unpublishing it)?
      The code by default is
      <?php /** Begin Breadcrumbs **/ if ($gantry->countModules('breadcrumb')) : ?>
      <div id="rt-breadcrumbs">
      <?php echo $gantry->displayModules('breadcrumb','basic','breadcrumbs'); ?>
      <div class="clear"></div>
      </div>
    • Damjan Savic's Avatar
    • Damjan Savic
    • Newbie
    • Posts: 18
    • Thanks: 0
    • Web design, Graphic design, Computer tech.

    Re: Excluding code/scripts/components from pages

    Posted 14 years 3 months ago
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Excluding code/scripts/components from pages

    Posted 14 years 3 months ago
    • hello, and for exclude a plugin, witch php code use ?

      thanks

Time to create page: 0.071 seconds