I posted the same question previously (
http://www.zenphoto.org/support/topic.php?id=221), but that was quite some time ago so am re-asking this for the current version of zenphoto.
Have just upgraded to 1.4.6 from 1.4.5.9, and noticed that the gallery link returns to the 1st page instead of the page that I'm currently on (e.g. previously if I'm on page 5 of my gallery page, clicking on link would return me to page 5). Makes browsing the gallery site a bit tedious.
Is this changed in the newer version or is there a theme function for this?
Comments
You would have to pass the value of the current gallery page to whereever you are clicking so you can return to it. Since all are links and no form elements you can only append that via a GET query to the url and check that on the target page. Something like `&returnpage=`. Then append it to the gallery url.
The current page number is stored in the global variable `$_zp_page` (for all standard theme paginations gallery, album, news articlces).
Curious, why is it that it works out of the box in prior versions before 1.4.6?
YOu would have to pass the page you are on to the page you are going.
Then you have to check for the page and append a query to the return url. `getCustomPageURL()` has a parameter for queries.
EDIT: Indeed I still have a 1.4.5.9 install locally and there it works. Have to look what changed. But it should only have worked with `getGalleryIndexURL()`. Indeed a lot has been removed here.
re: getCustomPageURL, how do I pass the current page I'm on to `getCustomPageURL`?
Give me some time to get the functionality back.