NEW EasySocial 4.0 Beta Released! Marketplace, Front-end Advertisements, Google Sign In and a whole lot more! 🌟 🚀 🎊


Adding number of comments in a list of articles


I would like to show the comment count of joomla articles in the category-module next to each articles.
Like :
subcategory 1A
-->article 1 (# of comments)
-->article 2 (# of comments)
subcategory 1B
-->article 1 (# of comments)
-->article 2 (# of comments)

And I found from another thread a solution to show the comment count for an article with :

require_once( JPATH_ROOT . '/components/com_komento/helpers/helper.php' );

$model = Komento::getModel( 'Comments' );
echo $model->getCount( 'com_xxxx', $id );

Could you give me hints on how to integrate this to the "mod_articles_category" please?

Also, I cannot find any helpers directory in com_komento?

Kind regards,

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Your time
Stack Ideas HQ
Support is

It is currently a weekend from where we are at. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!

Buy Us Coffee

Are you happy with our support and would like to buy us a cup of coffee?

Enjoy the Coffee!
Service via PayPal
Subscribe for product updates & promotions