Well I have made to get the module parameters in my k2 category.php template file using the following code.
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
via Joomla! http://ift.tt/1t99c1L
Code:
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModule( 'mod_k2wishlist' );
$modparams = $module->params;
$mod_obj = json_decode($modparams);
$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