ZenphotoCMS Forum
Autodelete search form - 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: Autodelete search form (/thread-8343.html)



Autodelete search form - madman - 2011-03-07

Hello!

just upgraded to the most recent Version 1.4.0.2, now the search is much better than in Version 1.2.3 which I had before.

But there is one thing, i don't like:
after eyery search I have to hit the "clear search" button before i can search again for other keywords.

Is there any way to autodelete the search cache after every search, so i don't have to click the button all the time?

Thanks!




Autodelete search form - madman - 2011-03-07

Sorry for the double-post, but i found a solution:

I wanted to get the search cleared after every single search so i putted: into my search.php - that works now for me

but... I guess that this is not very nice?
are there other (better) ways to do that?




Autodelete search form - acrylian - 2011-03-07

To clear the search cache please see:
http://www.zenphoto.org/support/topic.php?id=8809#post-51941




Autodelete search form - madman - 2011-03-07

Thanks,

but I've already found that answer before, but it did not work for me.

I putted it between tags before the call on printSearchForm() but then the search don't work at all.




Autodelete search form - sbillard - 2011-03-08

Your above solution is fine. I suppose we could have an option as to if searches within searches are allowed. But you are the first that wished to prevent that.




Autodelete search form - madman - 2011-03-08

thank you, sbillard!

Then I will keep this onload event in my search.php and wait until you include this feature in a future release.

But as long as it works with the onload event I wont mind anyway.

Thanks for your help an time and of course for making this great gallery!!