0
Welcome Guest! Login
0 items Join Now

Site modules showing on certain sobi2 pages? How to remove?

    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • Hi there, I've installed Sobi2 on my website....I'm brand new to sobi2, so hopefully I'm making a simple, obvious mistake....however, on vcard and detail view there are lots of other showcase modules etc from my template being shown, that I don't want to display....

      I only have these modules configured to show on the homepage menu link...so why do they show on sobi2 components which is a different menu item? If you could let me know where I can turn them off as it's driving me mad at the moment, that would be great...thanks

      Just to provide some further info...

      When clicking on the menu item linked to sobi2, only 2 un-wanted modules are displaying...
      When clicking on the detail view of an entry, that's when all the showcase modules etc are also displaying?

      Site is jetm-uk.co.uk, but has a username and pass please pm for it and ill answer asap, I check often.

      Cheers for any ideas peeps
    • www.cityinsurance.co.uk
  • Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • I'm having the same problem!
  • Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • Just found a solution! In your index.php template file (I'm using the Infuse template), find the code that is displaying the "Showcase" modules or whatever other positions you don't want the extra modules to appear in the sobi2Details view. Then tell it to not display any showcase modules if sobi2Task is sobi2Details.

      So in my case, I had modules showing up in my Showcase area that I did not want to show up when I was in the Sobi2 Details view. To fix this, I changed:

      <?php $mClasses = modulesClasses('case1'); if ($this->countModules('showcase or showcase2 or showcase3')) : ?>

      To this:

      <?php $mClasses = modulesClasses('case1'); if ($this->countModules('showcase or showcase2 or showcase3') and JRequest::getCmd('sobi2Task')!='sobi2Details') : ?>

      Hope that helps!
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • you beast...solved it in 20 minutes looking at your post timings :D Ill take a look at this in the morning when i'm fresh, but looks v. promising...nice one. I need to remove modules from the v-card view too...so will have a play and hopefully work it out...cheers once again
    • www.cityinsurance.co.uk
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • aaah, i've jjust looked, and gantry is coded very differently, not sure if that will work :/ will keep looking
    • www.cityinsurance.co.uk
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • This is the whole showcase code in template.css
      <?php /** Begin Showcase **/ if (true or $gantry->countModules('showcase')) : ?>
                     <div id="rt-showcase"><div id="rt-showcase2">
                          <div class="rt-container">
                               <div class="shadow-left"><div class="shadow-right"><div class="shadow-bl"><div class="shadow-br">
                                    <?php echo $gantry->displayModules('showcase','standard','showcase'); ?>
                                    <div class="clear"></div>
                               </div></div></div></div>
                          </div>
                     </div></div>
                     <?php /** End Showcase **/ endif; ?>
    • www.cityinsurance.co.uk
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • Please could someone help me integrate this code into my gantry template? :( I'm lost and getting nowhere
    • www.cityinsurance.co.uk
  • Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • Did you try this or something similar?:

      <?php /** Begin Showcase **/ if ((true or $gantry->countModules('showcase')) and (JRequest::getCmd('sobi2Task')!='sobi2Details')) : ?>
      <div id="rt-showcase"><div id="rt-showcase2">
      <div class="rt-container">
      <div class="shadow-left"><div class="shadow-right"><div class="shadow-bl"><div class="shadow-br">
      <?php echo $gantry->displayModules('showcase','standard','showcase'); ?>
      <div class="clear"></div>
      </div></div></div></div>
      </div>
      </div></div>
      <?php /** End Showcase **/ endif; ?>
    • fewleh's Avatar
    • fewleh
    • Hero Rocketeer
    • Posts: 340
    • Thanks: 0

    Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 15 years 1 month ago
    • Sweet!!! That has stopped the showcase module from showing. I did try that but must have missed something, thanks!

      I've just applied the same logic to the feature positions, and managed to remove those.. :) yey.

      Now, I have two modules left that I don't want to display -
      Threy are both in the "mainbody" part of the template (sidebar, and content-top-a) ..and so if I apply the same changes to the code (below)...it works... but it also removes the SOBI2 entry, as that is also using "mainbody".


      <?php /** Begin Main Body **/ if ((true or $gantry->countModules('mainbody')) and (JRequest::getCmd('sobi2Task')!='sobi2Details')) : ?>
      <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?>
      <?php /** End Main Body **/ endif; ?>

      Can I put something like....an except rule? don't show all modules in maincontent...EXCEPT sobi2 entry? I dont think so :) Thanks tho....getting there.
    • www.cityinsurance.co.uk
  • Re: Site modules showing on certain sobi2 pages? How to remove?

    Posted 14 years 8 months ago
    • fewleh wrote:
      Sweet!!! That has stopped the showcase module from showing. I did try that but must have missed something, thanks!

      I've just applied the same logic to the feature positions, and managed to remove those.. :) yey.

      Now, I have two modules left that I don't want to display -
      Threy are both in the "mainbody" part of the template (sidebar, and content-top-a) ..and so if I apply the same changes to the code (below)...it works... but it also removes the SOBI2 entry, as that is also using "mainbody".


      <?php /** Begin Main Body **/ if ((true or $gantry->countModules('mainbody')) and (JRequest::getCmd('sobi2Task')!='sobi2Details')) : ?>
      <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?>
      <?php /** End Main Body **/ endif; ?>

      Can I put something like....an except rule? don't show all modules in maincontent...EXCEPT sobi2 entry? I dont think so :) Thanks tho....getting there.
      Hi there, did you find a solution to this?

      I am using Somaxiom on Gantry and am trying to remove sidebar and other modules from Sobi2 details view template. What is the exact path to the file that you are editing?

      Any help would be greatly appreciated :D thanks.

      Richardt

Time to create page: 0.076 seconds