Skip to Content Skip to Menu

[#8007] userlist rank number

4 years 6 months ago - 4 years 6 months 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
Last edit: 4 years 6 months ago by krileon. Reason: Added [#8007] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
4 years 6 months ago - 4 years 6 months 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.

Code:
.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.
Last edit: 4 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

4 years 6 months 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
4 years 6 months 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum