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.

 

problem with parameter control

problem with parameter control

Hello,

I am trying to add footer text to a banner module (#30).  The following is the only code in my PHP box, following an example.  When I enable the metamod module, the whole page disappears (no navigation or anything).  When I disable the mod again, the page come back.  Thanks for your help.


$changes->mod(30)
   ->footer_text("message"); return 30;

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

Re: problem with parameter control

If "footer_text" is the name of the parameter, then you have to do a "setParam()" call like this:

$changes->mod(30)->setParam("footer_text", "message");
return 30;

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

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
295

Online: 
There are no members online

Forum Legend:

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