Mini version of the table
-
Hi Tobias,
Im hoping you can help me on this one, Im developing a site where we will be using your plugin for a league table, but I also wish to have a Mini version of the table in the sidebar of the site.
somthing like this
http://wildrosanna.niamhfoley.ie/index.php/activities/team-building/the-hunter-games/leader-board/What I did in this one was create a smaller table and import it in. But this is “Repetitive” and counter productive, as I wish to input data on to one table and show it in multiple locations with differint columns shown.
I hope you can shed some light on this for me please
Kindest
N
-
Hi,
thanks for your question, and sorry for the trouble.
For this, I suggest to use hidden rows and columns. To create the mini version of the table, you could for example use this Shortcode:
[table id=2 hide_columns="4,5" /]To also get a different header row, you would insert a new second row into the table, with the desired texts for the header row of the small table. Depending on which version you want, you would then extend the Shortcode even more with the
hide_rows="1"(or “2” for the big table) parameter.
Regards,
TobiasPerfect thank you Tobias, I shall Implement that..
Just another question, is it possible to have it auto Incrament when a new row is added, IE I want to have an Ranking# Column
Kindest
N
Hi,
good to hear that that will help!
I’m not really sure what you mean with that auto-increment, but this TablePress Extension might be helpful (if you really don’t want to just manually type in that number): http://tablepress.org/extensions/datatables-counter-column/
Regards,
TobiasYES that is exactly what I want,
What I will be using table-press for is to create a league table that can be update-able, with new stats etc, so I think that might do the trick.
As always its a pleasure using your plugin, and the support is second to non!!
Hi,
no problem, you are very welcome! 🙂
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
The topic ‘Mini version of the table’ is closed to new replies.