- Posts: 2
COMMUNITY FORUM
Every comment ID to start from 0 for each article
- Fredrik Westerlund
- Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago - 10 years 11 months ago #120180
by Fredrik Westerlund
Every comment ID to start from 0 for each article was created by Fredrik Westerlund
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
Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 11 months ago #120181
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Every comment ID to start from 0 for each article
This cannot be changed since that ID corresponds to values from the database.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Fredrik Westerlund
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
10 years 11 months ago - 10 years 11 months ago #120182
by Fredrik Westerlund
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
Replied by Fredrik Westerlund on topic Re: Every comment ID to start from 0 for each article
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 join the conversation.