mhaslamTech on "[Plugin: TablePress] Expand table to reveal hidden rows"

ساخت وبلاگ

mhaslamTech
Member
Posted 3 hours ago #

I've been looking at this thread:(https://wordpress.org/support/topic/how-to-expand-tablepress-row?replies=24#post-4187213) trying to achieve what I want but I can't seem to.

I have a table listing equipment with the following columns:
Item:_______________Quantity:______Price/Day:______Price/Week:
speakers_______________2______________£10______________£30
mixer__________________1______________£30______________£90
microphone package_____1______________£30______________£90
cables________________etc_____________etc______________etc

I want to have the 'microphone package' row to expand to reveal the separate list of individual microphones and a breakdown of their prices in the same format as the rest of the table.

Is this achievable and how could I go about doing this, with an extension or otherwise?

Many thanks,
Matt :)

https://wordpress.org/plugins/tablepress/

Hi,

thanks for your post, and sorry for the trouble.

You could maybe try the TablePress Extension that is discussed in this thread: https://wordpress.org/support/topic/how-to-expand-tablepress-row?replies=24

Regards,
Tobias

mhaslamTech
Member
Posted 1 hour ago #

That's the thread that I was looking at before my previous post.

I tried using that extension but it added an extension to all rows of the table and didn't expand the table in the same format. Another way would be if I could display a table within a table?

If the plugin/thread you suggested can work how I need it to, how could I adjust the shortcodes etc to achieve this?

Hi,

ah, my bad. I didn't notice that you had already found this.

If you add another table as the content that is to be displayed, this should work, but it might take some extra customization and other custom code. There's no directly usable solution for your idea, I'm afraid.

Regards,
Tobias

mhaslamTech
Member
Posted 20 minutes ago #

so could this code from the extension be altered to display the contents of a second table?

[table id=1 datatables_row_details=true datatables_row_details_columns="A" /]

Hi,

not directly. Instead, you'd simply have to add the Shortcode that displays the second table into the cell that is used for the details that are shown when the "+" button is clicked.

Regards,
Tobias

mhaslamTech
Member
Posted 5 minutes ago #

ok that makes sense but how would I actually get the + to appear and actually display the second table?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 219 تاريخ : سه شنبه 4 خرداد 1395 ساعت: 20:36