• Resolved luciojmartinez

    (@luciojmartinez)


    Hi Tobias

    I tried the “Shortcode Filter from GET parameter” extension and it works fine using [table id=1 filter=”07-MAI” /]
    But I have two problems:
    When I filter the table the filter by month as above, the filter box of the datatables_columnfilterwidgets is blocked. I would filter the table by actual month but that the user can change the month after.
    On the other hand I don’t understand how use the filter through the URL. I put http://lnx.veterans-fca.com/competicions/?tablefilter=”07-MAI” but doesn’t works.

    Thanks for your incredible work.

    Lucio

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The Shortcode [table id=1 filter="07-MAI" /] does not use the “Shortcode Filter from GET parameter” Extension, but only the regular TablePress Row Filter Extension. To use the “Shortcode Filter from GET parameter” Extension, you have use the Shortcodes that are mentioned on https://tablepress.org/extensions/shortcode-filter-get-parameter/

    Now, this will not have the effect that you are hoping for: Both of these Extensions filter before the table is sent to the browser (i.e. on the server side). The ColumnFilterWidgets Extension however works client side, using JavaScript code in the browser. Making these work together is not possible, as it’s not possible to set an initial filter for the ColumnFilterWidgets Extension.

    Regards,
    Tobias

    Thread Starter luciojmartinez

    (@luciojmartinez)

    Hi Tobias

    I think as I want is as you say, “set an initial filter for the ColumnFilterWidgets Extension”
    I thought that with this extension I could be get something similar.

    Thank you very much for your answer.

    Lucio

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem. No, sorry, this is not possible, as mentioned above 🙁

    Best wishes,
    Tobias

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

The topic ‘Shortcode Filter from GET parameter’ is closed to new replies.