WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] View table row in a page (5 posts)

  1. wahliz
    Member
    Posted 1 year ago #

    Hi Tobias,

    I really like your plugin, it is easy to work with for an unexperienced user as me. I am trying to create a site for my team and we need to show our statistics. First i want to show the overall statistic at one page, it works as it should as you can see at my link here: http://tomaswahlstedt.se/hfp/statistik/

    Now my big question :) I want to show one table row from the main table at a player page. I want for ex show goals and assists for the player called Tomas. How do i do this in a simple way?
    Is there a syntax like this?
    [table-row=1 table id=1/]

    Or how do i solve my problem?

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    yes, this indeed possible. In your case, the correct Shortcode would be

    [table id=1 hide_rows=all show_rows=1,2 /]

    This will first hide all rows and then just make the header row (row 1) and row 2 (for Tomas).

    As this is not very flexible (for example, you will have to change all Shortcodes if the order of the people changes), I'm already working on a better method, that allows filtering directly for the name. I have this ready for the predecessor of TablePress, but haven't yet had the time to finish it for TablePress, but that should happen this week. I will then post here again and show you how to use that more flexible solution.

    Regards,
    Tobias

  3. wahliz
    Member
    Posted 1 year ago #

    Hi,

    Thanks for your quick reply. I tried the shortcode u attached but it didnĀ“t work. Instead of showing 2 specific rows the whole table is now visible. Look at my link here:

    http://tomaswahlstedt.se/hfp/truppen/kristian-ellerstad/

    I really looking forward to this more flexible solution. Keep us updated and thanks for a great plugin!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for reporting this. As it turns out, there's a currently a bug with the "all" value not working. I was able to fix it, thanks to your report, so this will work as expected in the next release :-)

    Until then, you could work around this, by using

    [table id=1 hide_rows=2-5 show_rows=2 /]

    which emulates the "all" value for this table.

    The more flexible filtering solution will enhance this even further, so I hope to get that done in the next few days.

    Regards,
    Tobias

  5. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    a first version of that extension is now available at http://tablepress.org/extensions/row-filter/ Please install that with the instructions at http://tablepress.org/extensions/

    You can then use a Shortcode like

    [table id=1 filter="Kristian Ellerstad" /]

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.