This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Comments count in blog view counts also unpublished comments #328
Unanswered
zest96
asked this question in
Community Support
Replies: 1 comment
-
|
Thanks! I'll add that to the next release. Engage uses Joomla's Layouts (a.k.a. JLayout) feature. You can make template override for them as per the Joomla! documentation – albeit it's a bit easy to get lost, since these instructions are not too clear. Just copy the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For some reason and for a long time, I didn't notice that until now.
in blog view, the number of comments is larger. It counts also unpublished/disabled comments.
To fix that you can add the bolded line in file: /plugins/content/engage/layouts/akeeba/engage/content/category.php
Which lead me to ask how can I tmpl override engage layouts?
// Get the number of comments for this article
$model->setState('filter.asset_id', $row->asset_id);
$model->setState('filter.enabled', 1);
$numComments = $model->getTotal();
Beta Was this translation helpful? Give feedback.
All reactions