0
Welcome Guest! Login
0 items Join Now

Excluding code/scripts/components from pages

  • Re: Excluding code/scripts/components from pages

    Posted 16 years 7 months ago
    • Ok super!

      thanks a lot
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Excluding code/scripts/components from pages

    Posted 16 years 4 months ago
    • hello i would like to exclude mootools from 2 component, for 1 component i try this code and it works :

      <?php if ($option != "com_comprofiler") : ?>
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools-release-1.11.js"></script>

      but fot 2 components i try this code and it don' t work :
      <?php if ($option != "com_comprofiler or "com_seyret") : ?>
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools-release-1.11.js"></script>

      thanks
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 2 months ago
    • james

      i am trying to understand this. on my site www.marinersoutreach.org we are not putting any content items on the front page... only a slide show and a few other module positions. i would like the entire mainbody area to be gone on this page... not just eliminate the article.

      any way to do this?
    • Tikkigod's Avatar
    • Tikkigod
    • Sr. Rocketeer
    • Posts: 249
    • Thanks: 1

    Re: Excluding code/scripts/components from pages

    Posted 16 years 1 month ago
    • Any more info on this topic...looking at doing the same...any help appreciated...using replicant v2 1.5.10

      James H
  • Re: Excluding code/scripts/components from pages

    Posted 16 years 4 weeks ago
    • Hey James! Question for you sir!

      I'm using Sobi2 and it can't handle 'domready' in /libraries/joomla/html/html/behavior.php in IE.

      I'm wondering if I could add an exception for 'com_sobi2' to that page as illustrated in this thread.

      I can't test it via IE, as I'm a mac guy.

      Could you give me a hand?

      I know it's not really your business, but it sure would be helpful to me.

      peace,
      Ron
    • If the dog fails, smack the handler.
  • Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • Hi,

      I too need to remove the main body from the front page.
      I used this code but it does not work for me.
      I am using Joomla 1.5
      <div id="maincontent-block">
      <jdoc:include type="message" />
      <?php if (JRequest::getVar('view') != 'frontpage') : ?>
      <jdoc:include type="component" />
      <?php endif; ?>
      </div>

      Here is my URL: http://casfire01.mine.nu/joomla5

      Any help will be much appreciated.

      Regards,
      Nick
  • Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • Hi I'd like to exclude breadcrumbs from main page only in Solar Sentinel. After reading this page I've found this code in index.php of the template:

      <?php if ($this->countModules('breadcrumb')) : ?> <div id="breadcrumbs">
      <a href="<?php echo $this->baseurl; ?>" id="breadcrumbs-home"></a>
      <jdoc:include type="modules" name="breadcrumb" style="none" />
      </div>
      <?php endif; ?>

      It seems the same as the solution proposed so i'd change it some other way. Any sugestion?
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • On some templates you can find it in the Template Manager for that template and turn it off, but in SolarSentinel, it's actually a module. Visit your Module Manager and just unpublish the "breadcrumbs" module.

      As for the code in your post, that is the correct code to remove to get rid of breadcrumbs. That would be the way to do it if you can't find it as a module or in the template manager!
      <?php if ($this->countModules('breadcrumb')) : ?> <div id="breadcrumbs">
      <a href="<?php echo $this->baseurl; ?>" id="breadcrumbs-home"></a>
      <jdoc:include type="modules" name="breadcrumb" style="none" />
      </div>
      <?php endif; ?>
  • Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • I want just to get rid of the bar with the little home icon in the first page, but want breadcrumbs in the rest of the site.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Excluding code/scripts/components from pages

    Posted 15 years 11 months ago
    • Then assign the breadcrumbs module to all menu items except the frontpage? :)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.070 seconds