TablePress like a dropdown menu
-
Hello,
Ladies and Gentlemen, I’ve searched, really, and I don’t find any solution so you now see me with my question and I hope you will be able to help me.
So, I would like to use Tablepress to show all people in my company sorted by business unit (I’ve searched also a lot and it’s the best way I’ve found for that).
At the moment, I have my table with about 80 rows and 2 columns (2 peoples on each row) shown this way (- is to show that I change of column) :Business Unit 1
People 1 – People 2
People 3 – People 4Business Unit 2
People 1 – People 2
People 3 – People 4I’m trying to set TablePress in such a way that when my visitor arrive in the page where the table is, he only see, at the beginning :
Business Unit 1
Business Unit 2But, when he clicks on Business Unit 1, peoples are shown :
Business Unit 1
People 1 – People 2
People 3 – People 4Business Unit 2
He clicks again on Business Unit 1 and we go back to :
Business Unit 1
Business Unit 2My questions are :
Is it possible ?
How to do that ?If you could explain me as if I was really stupid, it would be really great.
Thanks a lot for your time.
-
Hi,
thanks for your post, and sorry for the trouble.
For this, something like the TablePress Row Details Extension that is described at https://wordpress.org/support/topic/how-to-expand-tablepress-row?replies=24#post-4187213 might be worth checking out.
Regards,
TobiasHello Tobias,
Thanks a lot for your reply but I don’t really understand how to use it 🙁 (shame on me)As an example, I have at the moment my business units in rows 1, 3 and 5, peoples in rows 2, 4, 6 and 7.
I’ve seen the modified short code [table id=1 datatables_row_details=true datatables_row_details_columns=”A” /] but I don’t know how to set row 1 to command row 2, row 3 to command row 4 and row 5 to command rows 6 and 7…
I’m really sorry :'(
Thanks again
Emmanuel
Hi,
you will basically have to change your table’s structure for this. I suggest to start with a test table (like the demo table on the TablePress website) and play with that, to see how this works.
Regards,
TobiasTobias,
Thanks a lot for your help.
I’ve found a solution in a different way.
So, if someone else wants to do the same, here’s requirements :
Wordpress (of course)
TablePress
Collapse-O-Matic
I will have to do one table for each business unit with only peoples and then, in my page, write a line [expand title=”Business Unit 1″][table id=1 /][/expand] for each BU.
This way, if I don’t click on anything, I have only business units names and I can expand/collapse to see which people are in them.Hi,
very nice, that’s also a good idea! Good to hear that you found this solution!
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
The topic ‘TablePress like a dropdown menu’ is closed to new replies.