SECURITY UPDATE EasyDiscuss 4.1.16 Released. Important security update and minor bug fixes 🔑


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

The support team is online and will be able to answer your inquiries. Please stay calm, follow the rules and do not cross post.

We will attend to you as soon as we can.

Subscribe for product updates & promotions