فتحات العرب Joomla! • Index page: Joomla! 3.x Coding • Re: Use module param inside an article

Friday, September 5, 2014

Joomla! 3.x Coding • Re: Use module param inside an article

Well I have made to get the module parameters in my k2 category.php template file using the following code.

Code:

jimport( 'joomla.application.module.helper' );

$module = JModuleHelper::getModule( 'mod_k2wishlist' );

$modparams = $module->params;

$mod_obj = json_decode($modparams);





So i thought if it is in category.php file the $modparams variable will also be available in the category-item.php file of my k2 template but i was wrong. I think it's a realy bad idea to do that for every item.



Any ideas ?



thanx

Statistics: Posted by mixahlos — Fri Sep 05, 2014 3:46 pm








via Joomla! http://ift.tt/1t99c1L

No comments:

Post a Comment