• Resolved dinonik

    (@dinonik)


    Hello Tobias
    you help me ones so I hope you can help me again.
    I use your plugin TablePress and is very useful to me but I find one problem that I cannot resolve.
    Let say that I have 20 items in one table sorted 5 per page and let say I’m on page number 3 and I click on one picture which is par of row, whenI click on that picture I get bigger picture on whole browser BUT when I press back button on browser I was redirected on first page of table not on number 3 page where I click to see bigger picture.
    Can you be kind and tell me hot to fix this problem, so when I click on back I want to stay on pagination page number where I click to see bigger pictures.
    Please any help any tips.

    Thanks & Regards

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I know what you mean. This is basically the result of how JavaScript works in web browsers. It’s a stateless language, so that the browser will not remember the state of the JavaScript when it returns to a page.

    Now, the DataTables JS library has a feature that might help here. With that, it will basically save its state and then return to that state when the page is reloaded.
    The technical details for this are at https://datatables.net/reference/option/stateSave
    To use this on your table, please try adding this to the “Custom Commands” on the “Edit” screen of the table:

    "stateSave": true

    Unfortunately, I can not give a guarantee that this will work, so that you might have to look for other solutions in that case, for example by not showing the image in the same tab, but in a new browser window.

    Regards,
    Tobias

    Thread Starter dinonik

    (@dinonik)

    Hello Tobias
    thanks for fast answer. I have try but nothing.
    Is there any other way to put picture in cell and on some way get pop-up for this pictures.

    Thanks

    Thread Starter dinonik

    (@dinonik)

    Hello Tobias
    I resolve with bStateSave: true

    Thanks for help

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    That should be possible, but you will need an extra plugin for this, like something with gallery or Thickbox/Lightbox functionality. TablePress itself can not do this, as it’s only a table plugin and not an image handling plugin.

    Regards,
    Tobias

    Thread Starter dinonik

    (@dinonik)

    Hello again
    just short question since I let say find solution to my problem.
    I add command (“bStateSave”: true), but you send me (“StateSave”: true) that’s OK,
    my question is::
    what is correct to write (“bStateSave”: true) with quotation mark “” or without just (bStateSave: true).

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, thanks for the update! That’s good to hear!

    The quotation marks shouldn’t matter, although I would add them as that’s cleaner JavaScript (and valid JSON).

    But in your case, the bStateSave seems to have been more important (compared to just stateSave). This indicates that you are not yet using TablePress 1.5.1, am I right?

    Best wishes,
    Tobias

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

    Thread Starter dinonik

    (@dinonik)

    OK, thanks.
    Yes, I use old version, but work just fine to me .
    Btw, your plugin is very good, help me a lot in my work so from 1 to 5 I give you clean 5.

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate that! 🙂

    Even if everything works, I suggest to always use the latest versions of WordPress and TablePress. Only that will guarantee that everything works flawlessly in the future!

    Best wishes,
    Tobias

    Thread Starter dinonik

    (@dinonik)

    Yes, good suggestion I also try that but I use old version of WP and when I try to update your plugin I get error that my WP version is to old. And now how to tell you ” ich habe keine lust” to make any upgrade of my page all work just fine and my motto is if work don’t touch.
    Anyway thanks a lot.

    mfg

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    well, then you should update WordPress 🙂
    “Don’t touch it, if it works” is ok, but you should be aware that you might have more work to do in the future then 🙂

    Best wishes,
    Tobias

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

The topic ‘TablePress reset to first page’ is closed to new replies.