hi,
i developing own custom component , use 1 of module parameters specified user. module done myself , related custom component.
name of module:mod_testpar
name of component: com_testpar
so have parameter, "parameter123", similar in module's xml file:
in component code, doing retrieve no luck:
i tried a:
and see dummy structure. sure module exist. can help? maybe doing wrong? thanks
i developing own custom component , use 1 of module parameters specified user. module done myself , related custom component.
name of module:mod_testpar
name of component: com_testpar
so have parameter, "parameter123", similar in module's xml file:
code: select all
<field name="parameter123" type="menuitem" default="" label="test parameter" description="test parameter desc" />
in component code, doing retrieve no luck:
code: select all
jimport('joomla.application.module.helper');
$module = jmodulehelper::getmodule("mod_testpar");
$params = new jregistry;
$params->loadstring($module->params, 'json');
$testpar= intval($params->get('parameter123', 0));
i tried a:
code: select all
print_r( $module );
and see dummy structure. sure module exist. can help? maybe doing wrong? thanks
i'm doing similar. i'm trying values loaded article use in module. did ever find answer question?
Comments
Post a Comment