ZenphotoCMS Forum
Search functionality - 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 functionality (/thread-9901.html)



Search functionality - SubJunk - 2012-04-27

I'm getting support requests from users about searching, they don't realise the "clear search" button is there so get confused when their search is added to their previous one instead of being a new search.
Is there a setting in the admin panel for it that I'm missing? I tried looking




Search functionality - sbillard - 2012-04-28

insert this into the beginning of your search.php script
$_zp_current_search->clearSearchWords(); to clear the search.




Search functionality - SubJunk - 2012-04-29

When I add that it makes no search results show up




Search functionality - sbillard - 2012-04-29

You can try the development nightlies, then. There is added a parameter to the printSearchForm() function to control this behavior.