Support » Plugin: TablePress » TablePress Preserve Position on Return to Table

  • Resolved martyparker9745

    (@martyparker9745)


    Hi, Tobias,

    First, thank you again for the wonderful tool! Really works well.

    One of our tables has 1,260 row entries, each referencing a different recording. Users who page through to find interesting recordings then click to listen to the recording.

    We have had requests from users who would like to use the browser back arrow after listening to a recording and be returned to the same “page” in the table from which they selected the recording. This would avoid their having to page through the table or click through the page numbers to find their last location.

    Is there a method by which the Table will keep a marker in the user’s browswer on a computer and smartphone and tablet so that the user can revert to their most recent table page location when they click the back arrow?

    I doubt that you need to see a table to be able to evaluate this, but if so, let me know or use the links from a prior post.

    Looking forward to your response.

    Best regards,
    Marty

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I haven’t yet tried this myself, but according to the documentation of the external DataTables JavaScript library that TablePress uses for the pagination, this might be possible, by adding this to the “Custom Commands” text field on the table’s “Edit” screen:

    "stateSave": true
    

    Regards,
    Tobias

    Thread Starter martyparker9745

    (@martyparker9745)

    Hi, Tobias,

    Yes, that looks like the right function from the Documentation. However, I must not understand how to use it.

    The custom commmand box for my tables already has the pagination command:
    “pagingType”: “full_numbers”

    When I enter the stateSave command either as:
    “pagingType”: “full_numbers”; “stateSave”: true
    or
    “pagingType”: “full_numbers” “stateSave”: true
    the pagination no longer appears on the tables.

    I’m sure it’s because of my more amateur skill level. Can you give me some guidance as to how to do this correctly, please?

    Thank you very much,
    Marty

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Marty,

    you are on the right track! Please try combining the commands with a comma ,:

    "pagingType": "full_numbers", "stateSave": true
    

    Regards,
    Tobias

    Thread Starter martyparker9745

    (@martyparker9745)

    Hi, Tobias,

    Excellent, and exactly what we were looking for.

    Thanks for helping me with my amateur level of understanding. It works perfectly now.

    Again, thanks for this great plugin!

    Marty

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! đŸ™‚ Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TablePress Preserve Position on Return to Table’ is closed to new replies.