Hi,
thanks for your post, and sorry for the trouble.
You could take a look at the Table Row Order Extension from https://tablepress.org/extensions/table-row-order/ for this, which can print a table in a sorted order, even when the data is not sorted on the “Edit” screen.
Regards,
Tobias
No problem, Tobias.
I saw this plugin today but I don’t know how to use it probably.
Example:
Rating in my TablePress before:
1. user1 99 Pts.
2. user2 97 Pts.
3. user3 95 Pts.
Now User3 earned 20 Pts. in The Last Race. And user2 got 10 Pts. Now My Table Looks like:
1. user1 99 Pts.
2. user2 107 Pts.
3. user3 115 Pts.
Now the table needs to be sorted again automatically. How can I do that?
The target is, that the editor only has to enter the new overall points. Is this possible?
Hi,
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Hi,
thanks! The mentioned Table Row Order Extension should work fine here. Just install that as a new plugin and extend your table’s Shortcodes on that page to
[table id=123 row_order=sort row_order_sort_column=3 row_order_sort_direction=DESC /]
To then also get an ascending ranking column in the first column, you can additionally use this Extension: https://tablepress.org/extensions/datatables-counter-column/
Regards,
Tobias
Hi Tobias,
thanks for your fast support, I will donate some amount to you later this month (it’s on my todo list now ;)).
But one last question, how should the shortcode look like, when I use the DataTables Counter Column plugin together with the table row order, like mentioned before? And is there something other I have to think about?
Hi,
thanks for wanting to donate, I really appreciate it!
Just add the extra parameter to the Shortcode, like
[table id=123 row_order=sort row_order_sort_column=3 row_order_sort_direction=DESC datatables_counter_column=true /]
Regards,
Tobias
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!