UPDATES EasyBlog 6.0.11 Released! Update to the latest version 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
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  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