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.

 

Control Module Location for Returned Modules?

Control Module Location for Returned Modules?

Can one MetaMod module be set up to return a number of modules, and then set the location that returned modules are displayed?   Such as:

return 17 (then set it to show in the left position)
return 39 (then set it to show in the right position)

Thanks
Tracy

tracydunn
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Control Module Location for Returned Modules?

Hi Tracy,

yes, you can!

With MetaMod Pro, you can change the position of a module that you are including. Note: the syntax below requires PHP5. If you get an error and are using PHP4, let me know and I'll give you a PHP4 version.

Try this code:

Code:

$changes->mod( 17 )->position("left");

$changes->mod( 39 )->position("right");
return "17,39";

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

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10091
Newest User:
lamanaudio
Members Online:
3
Guests Online:
151


Forum Legend:

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