ZenphotoCMS Forum
Search context in image.php - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Search context in image.php (/thread-9599.html)



Search context in image.php - MatthRieux - 2012-02-07

Hi everyone,

I'm wondering if the search context is inherited in the image.php page (from the search.php page).
In other words, on an image page, I'd like to find the parent album of that image (the dynamic search album if I come from a search page).
Thanks in advance for your response.
And thanks also for the great work.

Matthieu




Search context in image.php - acrylian - 2012-02-07

If you access image.php from search results you normally stay within the search result context. The breadcrumb should still show the album the image is in (on standard themes). You can always use the standard template functions or the object model to get that info.




Search context in image.php - MatthRieux - 2012-02-07

I must have made something wrong...
The search context is only set if I refresh the search page before clicking on an image.
Otherwise, it's not set. And the parent album is the 'real' album and not the search album.




Search context in image.php - acrylian - 2012-02-07

The parent album of an image (the album it belongs to) is always the real album. Normally the results appear like this "Search > real album > image"

The search context (and also dynamic albums you can create) require cookies (or sessions) to work.




Search context in image.php - MatthRieux - 2012-02-07

I've just tried with the default theme.
And it works.
The problem is clearly on my side.
Thank you very much for your help.

Matthieu