WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[plugin: wp table reloaded] Details column and more (7 posts)

  1. matiuru
    Member
    Posted 2 years ago #

    1) Is it simple to add a detail column just the same as you have on your site http://www.poorpigs.de/baseball/teamroster/saison-2011/ ?

    2) I´m trying to setup my header of the table like this
    http://www.datatables.net/release-datatables/examples/basic_init/themes.html

    I just add on the "Custom Commands" this: "bJQueryUI": true but nothing happends.

    I know that I must have a minimun knowldege of this, if it is to complicated just don´t waste your time on me, truly.

    Thanx

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your question.

    That details column is unfortunately not that easy to get. It requires quite some JavaScript code which triggers an AJAX request to another PHP file. So this really requires some code development.

    Having the tables headers as in that link is also not possible directly with WP-Table Reloaded. The reason here is that the DataTables library that is included in WP-Table Reloaded does not contain the necessary CSS code and images of the jQueryUI layout. So, unfortunately, this would also require custom work to get those headers.

    Best wishes,
    Tobias

  3. creeser
    Member
    Posted 2 years ago #

    I have a client that really needs this functionality too. Can you give us more hints as to how you accomplished it?

  4. creeser
    Member
    Posted 2 years ago #

    Here's what I'm thinking... my "details" data won't change. I could put the "details" data into a hidden column in the table and show it onclick, adjusting the formatting of the particular td with css. With a little javascript, that be possible, yes?

  5. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I suggest that you manually try to achieve this by following the example at http://datatables.net/release-datatables/examples/api/row_details.html.

    For that, the best way would be to disable the usage of the DataTables JavaScript library within WP-Table Reloaded for your table and then manually load everything into the page. You could use a page template for this, for example, into which you would need to paste the initialization code for the library and the code that then open/closes the details.
    In that scenario, WP-Table Reloaded would only be used to generate the HTML code for the table.

    Regards,
    Tobias

  6. creeser
    Member
    Posted 2 years ago #

    Thank you Tobias! I can make that work. Best regards to you!

  7. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    great! Nice to hear that this helps! :-)

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic