Is there a way to setup zp to search only certain albums? On my site I have one directory where I keep all my photos, and then several dynamic albums that are generated by tags. Unfortunately when I search for an image I'm get duplicate results, one for every instance of the photo. Is there a way to limit the search to only ONE folder or album?
Could you provide the code for this? Thank you.
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintSearchForm
Example in album.php of official themes like Zenpage or Default.
Thanks. Here's the code that worked for me where 'all' is the name of the album I'm searching:
`$album_list = array('albums'=>'all','pages'=>'0', 'news'=>'0');
printSearchForm('','searchform','',gettext('Search'),"$_zp_themeroot/images/media-eject-inv.png",null,$album_list);`