Search context in image.php

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

Comments

  • acrylian Administrator, Developer
    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.
  • 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.
  • acrylian Administrator, Developer
    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.
  • 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
Sign In or Register to comment.