I'd like to access category parameters in mod_articles_categories - Each time needed parameters should be loaded from category assigned to module.

I have looked into module's php but there's nothing for category, there's just list of children.


OK, I have figured it out going little round the corner. Isn't there any easier way?

$categories = JCategories::getInstance('Content', $options);
$category   = $categories->get($params->get('parent', 'root'));
$attr = json_decode($category->params);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.