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.

 

No left or right columsn in community builder

No left or right columsn in community builder

Hey guys,

I am trying to not show the left or right column whenever visitors on a community builder page. Does meta mod allow this. I have used the php section to try and code this in and came up with

if ( $Itemid == "88" ) return "user1,top,user3";

i.e. return all columns except the left and right column. Obviously the community builder ID is 88

I would be so grateful if you could solve this

Peter

Goldenbrown09
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: No left or right columsn in community builder

Hi Peter,

MetaMod doesn't work exactly in the way you are trying to do it, though you can achieve it in a slightly different way.

(1) First of all, if you are trying to stop modules appearing on all CB pages, why not just allocate your modules onto all pages except the CB pages? i.e. using the standard menu selection thing when you are editing a module.

It looks like you must have created a CB menu item, since you know its Itemid (which is the id number of the menu) -- 88.

So just allocate all your modules onto all menu items except that menu item.

That might just work for you, although I agree that it's a maintenance pain to have to change all your module allocations every time you add a new menu item.


(2) What you were trying to do in the recipe you suggested, was to "turn on" certain module positions from inside MetaMod. It doesn't work in that way.

What you would have achieved would have been to include all the modules from those 3 module positions inside the MetaMod (whichever module position it was in) -- probably leading to multiple copies of these modules on the page. Correct? In any case, it would have had no effect on the "right" position.

So, if you want to continue with the MetaMod way, you could do this:

a - edit all your modules that are in the "right" position, and set them to be in the module position "right-metamod". You won't find that in the list, you'll need to type it in each time.

b - set your MetaMod to go into the "right" (not right-metamod) position, and set to appear on ALL pages.

c - in the MetaMod use the following rule:

Code:

if ($Itemid != 88) return "right-metamod";

What that will do, is that on every page this rule will check to see if it's on the CommunityBuilder page. If it's not, then it includes all the modules from "right-metamod" into the current position ("right").

If you want to add more modules into the "right" position in future, and have them controlled by the MetaMod, just remember to add them to the "right-metamod" position.

Then do all this for the left column as well (put stuff from the left column into "left-metamod", and put a MetaMod into "left" that returns "left-metamod" when CommnityBuilder is not active).

I think that will do what you want it to do.

You might also want to check out this FAQ: http://www.metamodpro.com/support/faq/2 … etamod-was

Hope this helps,
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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: No left or right columsn in community builder

This worked amazingly, spot on. But the left column is still on the community builder pages. I could create a copy of the metamod module, rename the xml file to Metamod 2 so it will upload to my backend and do the same on the left side no?

Thanks for your help

Such a terrific module.

Peter

Goldenbrown09
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: No left or right columsn in community builder

Hi Peter,

you definitely don't need to go messing around with XML files! Just create a new MetaMod module, using the "new module" facility in the module manager. Or, select the current MetaMod in the module manager and click on the "copy" icon to make an exact copy, then modify all the parameters in the copy.

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
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5193
Newest User:
david2398
Members Online:
1
Guests Online:
179

Online: 
Technichem

Forum Legend:

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