• Resolved Christopher Martin

    (@christopher-martin)


    Hi,

    I am using a plugin that displays all data responded by a query by enclosing the data inside <wpv-loop>my list</wpv-loop>.

    I would like to use WP-Table-Reloaded to layout\manage the data. Essentially what I need to do is insert <wpv-loop> before a <tr>, and then insert </wpv-loop> after the </tr>. This will then generate a table row for each of my posts. Is there anyway this can be done with WP-Table-Reloaded? (The plugin is WP-Types & WP-Views). I.E:

    <tbody>
    <wpv-loop>
    <tr>
    <td>[wpv-post-title]</td>
    <td>[wpv-post-field]</td>
    </tr>
    </wpv-loop>
    </tbody>

    Is there any way this can be done?

    Thanks for any help offered.

    http://wordpress.org/extend/plugins/wp-table-reloaded/

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

    (@tobiasbg)

    Hi,

    thanks for your question.

    I’m not really sure here, what you need WP-Table Reloaded for, when the data comes from somewhere else, and the layout is created elsewhere…
    Can you explain your desired use case?

    Or do you just want to use the advanced features like sorting/search/pagination on a custom table? Then you can just use the JavaScript library that does this directly, see http://www.datatables.net

    Regards,
    Tobias

    Thread Starter Christopher Martin

    (@christopher-martin)

    Hi,

    Thanks…

    The data comes from somewhere else, but I am heavily using the layout and CSS Styling, and I have used WP-Table-Reloaded extensively throughout for other static content.

    I would like to keep everything uniform and consistent (as well as having ease of managing), and just have one set of CSS styling to update all table across the site, etc.

    I know there are other options if I can’t use WP-Table-Reloaded – but I would prefer to use WP-Table-Reloaded for this if it’s possible?

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the explanation.

    Unfortunately, I don’t see a way of combining WP-Table Reloaded with that loop approach that you want, but it should be possible to use the existing styling of WP-Table Reloaded with that new (manually created) table. You’ll just have to make sure that it gets the basic CSS class “wp-table-reloaded” (and if desired a custom class, like “wp-table-reloaded-id-123” where 123 would be an arbitrary ID that does not yet exist in WP-Table Reloaded).
    You would still have to load DataTables manually for this table, if desired.

    Regards,
    Tobias

    Thread Starter Christopher Martin

    (@christopher-martin)

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, no problem.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: WP-Table Reloaded] Loop Table Rows’ is closed to new replies.