• Resolved Aezel.Remunj

    (@aezelremunj)


    Hello Tobias

    1. Great extensions the row filtering/responsive tables. I was wondering if I also could use a pagename instead of fixed strings as a parameter for filter. In my case I have a 100 rows, each associated with a page. I would like to show on the sidebar only one row associated with a specific page (a project status)

    2. In several cases I filter out relatively small tables per page (e.g.5×8). In these cases I do not need a sorting nor selection capability for the user on the page. I would love to be able to get rid of the sorting and search options (Top, Botom and arrows) to display only a straight forward table. Would that be possible?

    https://www.ads-software.com/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    1. Unfortunately, I don’t have the code available for this, so you’ll have to try doing this yourself. I would suggest to use the Row Filter Extension as a foundation, and then the code of the Extension from https://tablepress.org/extensions/shortcode-filter-get-parameter/ on top of that. In that Extension, you would have to add a modification. Instead of retrieving the desired filter word from the URL, you would have to pass the page name to the function.

    2. For this, I would suggest to turn off the “Use DataTables” checkbox on the table’s “Edit” screen. That will turn off those features for all tables. Then, you can re-enable the features in all tables/Shortcodes where you want them (for example on the page where you have the Shortcode that shows the full table), by adding another parameter to the Shortcode:

    [table id=123 use_datatables=true /]

    Regards,
    Tobias

    Thread Starter Aezel.Remunj

    (@aezelremunj)

    Hi Tobias,

    Thanks for your quick and concise answer.

    2. Does exactly what I was looking for. Works perfectly.

    1. Would seem to be exactly to the solution I need. However it does not seem to work for me.
    I am already using the Row Filter Extension in my text widget with [table id=1 filter=”FilterWeert” /]. Works like a charm.
    When trying to use [table_filter id=1 /] in combination with http//www.mysite.nl/regio/weert/baexem?table_filter=FilterWeert I only get the text [table_filter id=1 /]. The extension is activated.
    Any suggestion?

    regards,
    Harrie B?r

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the Shortcode

    [table_filter id=1 /]

    is not evaluated in text widgets, by default.

    For that, please try adding this line to the “functions.php” in your theme:

    add_filter( 'widget_text', 'do_shortcode' );

    Regards,
    Tobias

    Thread Starter Aezel.Remunj

    (@aezelremunj)

    Hi,

    Thanks, I will try.

    Would there be any possibility to integrate some default filters in the table function? I would gladly donate €100 if I could choose a slug or category padded with a fixed string to make it unique in the table. e.g. FilterWeert “Filter”& slug.

    The reason is that:
    – table is so much more elegant: no special code; perfect for a newbe like me (I only use WordPress 4 days and TablePress 2 days and presto it works)
    – Maintainability: I am working as a volontere and have to pass on the site to others. If an uppdate comes, someone will probably update table_filter with the result that the website will not work anymore as I had to change the origianal one.

    If not, I am sure that your suggestions will do the trick. It is an awsome piece of work.

    Best regards
    Harrie B?r

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you should not have to worry about someone accidentally updating that [table_filter] Extension, as it’s not in the WordPress plugin repository.

    Now, about your other question: I’d have to take a deeper look at this on your site first, in order to know what changes we would need. We should therefore continue discussing this directly. Can you please contact me via email (the address is in the main plugin file “tablepress.php”).

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter on pagename simpler table layout’ is closed to new replies.