Print this page
Saturday, 03 August 2013 22:41

how to get joomla module parameters

Written by 
Rate this item
(0 votes)

It's a very common to get joomla module's setting parameters in
code to process the module.It's easy but sometimes things
become complicated if you don't find the right way to do
that.

this code simply gets the parameter value -

$params->get('fb_moduleviewset');

here fb_moduleviewset is the parameter name which you
set in module's main xml file.this parameter
value is set in mdoule settings in joomla admin side
which you know well.

this is how i get some more parameters value -

$fb_postcolor = $params->get('fb_postcolor');
$fb_backcolor = $params->get('fb_backcolor');
$fb_backcolorcom = $params->get('fb_backcolorcom');
$fb_colorcom = $params->get('fb_colorcom');

Hope this post helps.Don't forget to share and like it.

Read 3565 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.
7