Hello!
I've been using and learning K2 alongside Joomla and i've faced a "problem", if we could call it that.
Every comment for articles have an unique ID, which means for every article, the comments doesn't start counting from 0, but rather from the ID of the comment. So the first comment can have ID #50.
Can this be changed? I haven't found anything in the settings to change it.
Can I perhaps change the comment template so that it only visually counts from 0? When clicking the comment, the real #ID could show.
As it is now, I changed the template to show the actual #ID in the comment
I've been using and learning K2 alongside Joomla and i've faced a "problem", if we could call it that.
Every comment for articles have an unique ID, which means for every article, the comments doesn't start counting from 0, but rather from the ID of the comment. So the first comment can have ID #50.
Can this be changed? I haven't found anything in the settings to change it.
Can I perhaps change the comment template so that it only visually counts from 0? When clicking the comment, the real #ID could show.
As it is now, I changed the template to show the actual #ID in the comment
13 years 1 week ago #120181
This cannot be changed since that ID corresponds to values from the database.
Topic Author
13 years 1 week ago #120182
Krikor Boghossian wrote:This cannot be changed since that ID corresponds to values from the database.
Yeah was just wondering if there was some setting that could change it.
Anyway, I made a very simpel solution to visually show the comment count per article, while still having the correct ID as a link.
I added the variable: $commentCount
Log in or create an account to reply.