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);


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

without success.

Related Questions

How to group parameters in module admin?

Updated April 14, 2016 08:04 AM

Module field type category not working

Updated September 30, 2017 14:10 PM