[#8007] userlist rank number

2 months 4 days ago - 2 months 1 day ago #318420 by marsplanete
[#8007] userlist rank number was created by marsplanete
Hi there ! First thank you for this wonderful component !
As I didn't find anything about it, I put my question here...
Is there a way to show on a list a first column with the "rank" (number of the line) so users can see their "place" in the list ?

Maybe it's very easy, but I didn't find... sorry...

Thank you by advance for your answer and your help

All the best

Please Log in to join the conversation.

2 months 2 days ago - 2 months 2 days ago #318467 by krileon
Replied by krileon on topic userlist rank number
There's no row number output for userlists. You can use CSS to add it though using a counter. Example as follows.

.cbUserListLayoutList .cbUserListRow {
	counter-increment: rowNumber;
}

.cbUserListLayoutList .cbUserListRowCol1:before {
	content: counter( rowNumber );
}

That would insert the row number into the first column of the userlist for example. Main issue is page 2 would start off at 1 again.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 months 2 days ago #318475 by marsplanete
Replied by marsplanete on topic userlist rank number
Thank you for you quick answer !
It works !

But you're right, the problem is that the 2nd page starts again at 1...
It's a first step... I'll see if I keep it with a single (but long) page, or if I find another solution to have a real ranking for each member...

Thank you again !

Please Log in to join the conversation.

2 months 1 day ago #318496 by krileon
Replied by krileon on topic userlist rank number
Added a feature ticket to see if we can implement a custom column field for userlists that outputs the row number.

forge.joomlapolis.com/issues/8007


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.679 seconds

Facebook Twitter LinkedIn