![]() |
|
Custom hardcoded search - 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: Custom hardcoded search (/thread-7008.html) |
Custom hardcoded search - altert - 2010-05-06 Hello. In one of my projects I'm trying to customize printAlbumMenu function to print only albums tagged with tag "menu". I use this code $searcher=new SearchEngine();
` I have two dynamic albums tagged with "menu", but $albums array comes out empty. Did I miss anything here? Thanks, Custom hardcoded search - Blue Dragonfly - 2010-05-06 I think you need to specify the search params as a URL-encoded string - instead of urlencode("menu"), I think you need urlencode("searchfields=menu"). Custom hardcoded search - altert - 2010-05-06 thanks. Tried also "words=menu" but no luck so far Custom hardcoded search - Blue Dragonfly - 2010-05-06 Oops, I meant "searchfields=tags&words=menu". Custom hardcoded search - altert - 2010-05-06 ok, thanks. That didn't do the trick either, but I've found another way to do what I wanted, using dynamic albums as subalbums |