WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] save table state / table view for users (2 posts)

  1. nathanbraun
    Member
    Posted 11 months ago #

    Hi, I'm interested in allowing my users to filter tables (using the filter widgets), and then have these same filters still applied when the users return.

    Ideally, I'd like this it to save the table state for each user (no matter where they're logged in from) but doing it by cookies (see here: http://wordpress.org/support/topic/saving-datatables-state-length-filtering-page-in-cookie ) would work.

    I did the cookie method described above. It works, in as far as when I leave and reload the table, the filter is still applied. However when I come back the filter is just "hard coded" -- i.e. it won't allow me to turn it off. Typically the name of the filter shows up in a blue text link, and is something you can cancel by clicking on it again (shows up with a strikethrough when you mouse over it).

    Is there anyway to enable this functionality, that is -- have the user save their table settings using the widgets, and have them be able to turn the filter off (or set a new one) when they return to the page?

    Please let me know if this question isn't clear. I love the plugin (donated already) and really appreciate all your hard work. Cheers,

    Nathan

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Nathan,

    thanks for your question and sorry for the trouble!

    Unfortunately, I can't help with a solution here :-( From what I know, the ColumnFilterWidgets Extra for the external DataTables JS library does not have suppport for state saving like this. Only the native DataTables library has support for this (which you are using as per the instructions in that link that you posted).
    As I'm not the developer of that library or the Extra, there's nothing that I can do here. Sorry :-(

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic