Member
Member
MatthRieux   07-02-2012, 13:05
#1

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

Administrator
Administrator
acrylian   07-02-2012, 13:18
#2

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.

Member
Member
MatthRieux   07-02-2012, 13:22
#3

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.

Administrator
Administrator
acrylian   07-02-2012, 13:55
#4

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.

Member
Member
MatthRieux   07-02-2012, 18:22
#5

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.