![]() |
|
howto exit search context? - 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: howto exit search context? (/thread-2245.html) |
howto exit search context? - BertSimons - 2008-02-14 I have this problem.. I find an image by searching tags.. looking at this image page the breadcrumb is in the search. first image in this tag search: http://www.bertsimons.nl/zenphoto/page/search/tags/maquettes contains a link named test in its description to an image in another album but as you see the breadcrumb stays in the context of the search howto exit search context? - sbillard - 2008-02-14 This is a bug, but it may be difficult to fix. The only way to exit search context is to clear the cookie. This happens if you click on an album, but not on an image (because that's how you got to the image from the search page.) howto exit search context? - sbillard - 2008-02-15 In researching this I realize that the behavior you are describing is probably the intended behavior. The next/prev buttons of an image reched via clicking on a search image thumb should be the next/prev images of the search. howto exit search context? - BertSimons - 2008-02-15 yes. the next prev buttons should as they do stay within the search. http://www.bertsimons.nl/zenphoto/prototypes/maquette_model_en_objekt.jpg.php and it is indeed not as simple by deleting the cookie with
howto exit search context? - sbillard - 2008-02-15 What is the test link supposed to point to? What function did you use to generate it? You can try the nightly build on this. I have mades some changes to the cookie handling which might fix the problem. howto exit search context? - BertSimons - 2008-02-25 Hi, I was busy for a while andjust checked out the latest nightly build: so FYI what I noticed that if you do a search and go to the prev/next images you indeed browse trough the search results but since the cookie has been cleared or something else the numbering of the search results is now incorrect. it shows the number of the found picture as the #th picture of the total pictures of teh album this picture belongs to. so for eg 4 found images while browsing trough them you'll can see things like; 1 of 5, 2 of 12, 3 of 15, 4 of 1 instead 1 of 4, 2 of 4, 3 of 4, 4 of 4 and more a problem for myself as soon as I upgrade to the latest build in my own theme were I show thumbs on the image page, the thumbs alongside the found images now show the the other thumbs in the album insteas of the other found images thumbs.. obvious off course since the $images has been cleared. also my conditional albumlink on the image page` if (in_context(ZP_SEARCH)) {?>found in album: howto exit search context? - sbillard - 2008-02-25 The search context no longer is set except for the actual search page. The proper new test to see if you are processing a serach image is I will have to look into the image number thing. Probably just a place that was overlooked and is not aware it is in a search result. howto exit search context? - BertSimons - 2008-02-25 sbillard, thanks again! with code below I've been able to get the imagethumbs of searched images on the image page while in search and other things work fine now with the latest build except for the number thingy, thanks again! ` howto exit search context? - sbillard - 2008-02-26 Thanks for the reminder about the number thingy. I think I have fixed it in tonight's nightly. |