• Resolved wahliz

    (@wahliz)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    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

    Thread Starter wahliz

    (@wahliz)

    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!

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: TablePress] View table row in a page’ is closed to new replies.