Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Exclude right column showing in component?

Exclude right column showing in component?

Hello
how to exclude right column from showing in particular component?
com_maianmedia

dup
Beginner Modder
ranks
useravatar
Offline
15 Posts
Administrator has disabled public posting

Re: Exclude right column showing in component?

If it's an entire right column, then you able to do this without MetaMod by editing your template (depending on template!). Many of the Template Club templates based on complex frameworks may not make this easy to do.

Anyway, if you are able to, then you can check the component in PHP using this:

if ($option != "com_maianmedia") {

}

... and that would have to fit in with the other PHP and HTML in the template. If you know some PHP then that is usually quite straight forward.  "!=" means "not equal".

If for some reason this is not possible with your template (or cos it exceeds your PHP capability), then you can also do it with MetaMod. You almost certainly also need the Pro version for this, for technical reasons!

Assuming that your right column already disappears(collapses) when there are no modules assigned to it...

1 - use MetaMod Pro
2 - put just 1 module into the right column module position: the MetaMod.
3 - put all the other modules that *were* in the "right" position into a new position called "right-metamod".
4 - in the MetaMod, use the following rule:

if ($option != "com_maianmedia") return "right-metamod";


What happens then is that the MetaMod gets run any time a new page is constructed. It checks to see if the component is NOT maianmedia. If it's not, then it pulls in all the modules from the "right-metamod" position and puts them into the same module position as the MetaMod.
And because you are running Pro, then if the MetaMod does *not* return any other modules or positions, then even the MetaMod itself disappears from the page, and the right column is able to collapse. Magic.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
2
Guests Online:
195


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked