Get module parameters from a plugin

99 views
Skip to first unread message

KHarmer

unread,
Aug 2, 2012, 7:02:41 PM8/2/12
to joomla-de...@googlegroups.com
Hi all,

I have a custom module with custom paramaters which I'd like to be able to get from either a plugin (non-related) or from the modules helper file which is also used by the plugin.

The reason being is that these paramaters can/will be used by other extensions (mainly plugins).

I've googled and cannot find anything that works (I've tried the obvious methods used when calling them in the module etc.); I can only load the modules parameters from the modules own tmpl file or the modules own definition file!

Any ideas would be gratefully received.

Best regards,
K...

Mark Dexter

unread,
Aug 2, 2012, 7:21:02 PM8/2/12
to joomla-de...@googlegroups.com
The module params are stored (as a JSON string) in the params column
in the #__modules table. So you could get them by a direct query or
you could use the API. JModuleHelper has a getModule() method that
looks like it will do the work for you. Good luck. Mark
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-general/-/b1ckUx2ppRsJ.
> To post to this group, send an email to joomla-de...@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-gene...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Reply all
Reply to author
Forward
0 new messages