WP-Table Reloaded
[resolved] Include column with "Click Here"s that link to pages with row information (5 posts)

  1. alisontaylorbc
    Posted 3 years ago #

    I'm wondering if the following is possible?

    Our website currently displays a page with lots of columns, so we've had to use a small font and double-up two columns into one, in some places, to make things fit. You can see it here:

    We would like to display just some of the columns and then have code automatically add in an extra column called "More Information" with a "Click Here" button in each cell of that column that takes you to a page that lists all the content of that row of the table in a non-tabular format).

    So the table would look like this:

    And the Click Here would take you to a page like this:

    I'm competent in PHP, but looking for some direction as to any features which are already built into the product or its extensions, so I don't end up reinventing the wheel.

    Many thanks!
    Alison Taylor


  2. TobiasBg
    Plugin Author

    Posted 3 years ago #

    Hi Alison,

    thanks for your question.

    Unfortunatel, neither WP-Table Reloaded, nor its official successor TablePress, offer the possibility to show its data in non-tabular format. The reason is that the plugin is not designed to be a database system, but just wants to offer a possibility to quick show static tabular data.

    So, instead, you might want to go with a custom PHP/mySQL solution. With that, you could have a mySQL database, query that with PHP to build the main table, and when a sub-page is open, query the DB for just that entry and show it in the custom format.

    Another idea might for this might be to use a "Custom Post Type" in WordPress. With that, every "Volunteer Position" would be a "post", and the extra information could be added as post meta data. You could then use the regular WordPress Template Tags, to retrieve the post data from the WordPress database, and show it as a table on the main page, or (via a small extra template file) create the individual views, where the data is shown in non-tabular format. The advantage of this approach would be that you can get all of the URL handling "for free".

    I hope this helps.


  3. alisontaylorbc
    Posted 3 years ago #

    Thanks so much for your (quick!) reply. This sames me lots of time researching, so I can just get down to doing the code. Your support is amazing Tobias!

  4. alisontaylorbc
    Posted 3 years ago #

    Marking this as resolved.

  5. TobiasBg
    Plugin Author

    Posted 3 years ago #

    Hi Alison,

    no problem, you are very welcome!

    I just remembered another possible solution to have something like a "More info" button in a table (but without it linking to another page).
    See http://www.datatables.net/examples/api/row_details.html for an example. I have plans of making this a TablePress Extension in the near future.

    Best wishes,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.