Get Module Parameter Anywhere in component : Joomla 2.5

To use module parameters inside any of the component helper/view/model file of Joomla 2.5 , You can use below code :

         jimport( ‘joomla.html.parameter’ );
        jimport( ‘joomla.application.module.helper’ );
        $module = JModuleHelper::getModule(‘mod_name’);
        $moduleParams = new JRegistry();
        $moduleParams->loadString($module->params);
        $parama= $moduleParams->get(”parameter_name);

Hope above code will help you to component customization as per your requirement .

 

Show Buttons
Hide Buttons