Must load module from plugin, mod need know art.parms, catid

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
bongobongo
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Mon Dec 15, 2008 11:10 am

Must load module from plugin, mod need know art.parms, catid

Post by bongobongo » Thu Feb 03, 2011 8:20 am

Hi

******** UPDATE: **********
Found how to do it:
renderModule has a second parameter $attribs
I just set:
$attribs['catid'] = $row->catid
and then I can use $attribs from within my module... wohaaa
*******************************

I want to load a module from a plugin which is triggered on "onContentAfterDisplay".

Loading of the module is working nicely, but:

I want to get access to article params and article catid, from within the module that is loaded.

What is the best way to make those data accessible from within the module?
Creating some global variables might do it, but it is probably not best way to do it....

Anybody?

Locked

Return to “Extensions for Joomla! 2.5”