• Tobias,

    I would like to use the Datatables parameter to show/hide a row. As in this example:

    http://www.datatables.net/examples/server_side/row_details.html

    However, I cannot see where or how to include the parameter for this function. Do I do this in the “Custom Commands:” box on the Admin, or do I need to include this function in the template files?

    Also, another question. I would like to combine two cells into another. For example, in a table that has “First Name” and “Last Name” as individual columns, can I combine those into a new column “Name” and that column would be sortable by the last name?

    Many thanks for your help and efforts.

    kurt

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    the integration of that feature is a little bit tougher than just pasting the code into the “Custom Commands” textfield. You will need to write a plugin Extension that uses some plugin filters to insert the JavaScript code into the page. It’s not super hard, but it requires some programming.
    You could also create a specific page template for that table and include the JavaScript into the footer there (with some minor adjustments).

    About your second question, I’m not so sure. You can certainly combine cells with the “colspan” feature, however the DataTables library might not work as expected then (it usually requires tables to not have combined cells). So, you would need another custom JavaScript solution for this, if I understood your question correctly.

    Best wishes,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Table Reloaded] hidden row information’ is closed to new replies.