How to Show comments in discussion page?
In default discussion page, it just show comments.
I want make it show comments count, can you tell me how to edit it?
For example, my discussion page have 10 comments, I want make it show 10 comments at content bottom.
0
Comments
I have edited applications/vanilla/views/discussion/index.php
echo '';
Bottom is old code:
But it was not work.
I have edited applications/vanilla/views/discussion/index.php
Bottom is old code:
But it was not work.
Hello?
And why should it? You were trying to use a variable (
$category
) that isn't even defined in that context and if I assume would have shown a completely wrong information if it had succeeded.$category
, if defined, holds information about the category. You are looking for information of the discussion. So you must access the discussion.Create a custom plugin, copy the example and strip out anything you do not need, which is everything between the first open
{
and the last closing}
of the example plugin.It is important that your copy is in a folder which has the same name as your plugin and use that as the "key" in the addon.json
Add this inside the curly braces:
Hello. Let me introduce myself: I'm a volunteer and I feel annoyed by impatience.