UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. 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!
  Support is offline

Adding number of comments in a list of articles

tylr23 · ·
8:14 PM Saturday, 04 April 2020
Normal
Hi,

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,
The replies under this section are restricted to logged in users or users with an active subscription with us