Get module params in custom form field

by Marco   Last Updated October 09, 2019 14:10 PM

I need to get all other module field-params of the current module inside of a custom form field in backend.

In tmpl/default.php it works with:

$bgcolor = $params->get('bgcolor');

But in custom field file /fields/myfield.php it doesn´t work.

This is what i tried:

$module = JModuleHelper::getModule('mod_featured_image');
$moduleParams = new JRegistry($module->params);

and

$app = JFactory::getApplication();
$params = $app->getParams('mod_featured_image');
$param = $params->get('module_tag');

without success.



Related Questions


Updated December 10, 2016 08:04 AM

Updated October 26, 2016 09:04 AM

Updated April 14, 2016 08:04 AM

Updated September 30, 2017 14:10 PM