By tylr23 on Saturday, 04 April 2020
Posted in General Issues
Likes 0
Views 0.9K
Votes 0
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,
You can take a look at my attached screenshot how to achieve this.
·
Monday, 06 April 2020 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Great job, Arlex, thanks a lot !
·
Monday, 06 April 2020 22:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Monday, 06 April 2020 23:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post