how to limit search scope Posted by spoudret 18 Sep 2009 19:24 UTC using tiki3 I want to limit the scope of the search only to the wiki pages, default is search everywhere. There was a way in older version, but I cant figure where is it in V3 can someone help? TIA Stephane
Posted by Rick Sapir / Tiki for Smarties 21 Sep 2009 10:40 UTC You can hardcode this in a link. For example: Copy to clipboard[tiki-searchresults.php?words=foo&where=wikis|Search] HTH, - Rick | My Tiki Blog | My Tiki UserPage Need more help? Try TikiWiki for Smarties.
Posted by btyrad 22 Sep 2009 05:14 UTC well I'm guessing that you already unchecked the object filter box... but you still get results for all when you do a general search correct? Ya, I have actually found no way of changing that in the search feature. I have even gone so far as to uncheck the "ignore individual object permissions", and taken away users permissions (for trackers), but then the attached files (created in a tracker) aren't visible.
Posted by spoudret 21 Sep 2009 20:20 UTC That's a start, but my setup requires that I have something very similar to what Google show in their "classic" homepage. The search called from this point should cover only the wiki area. Anyone with an idea?
Posted by Rick Sapir / Tiki for Smarties 22 Sep 2009 11:49 UTC You'll need to edit/customize the module or template (TPL) from which you're calling the search function. Adding something like: Copy to clipboard< input type="hidden" name="where" value="wikis" /> will work. I do this all the time when I want to avoid end-users getting search hits from things like trackers or galleries. HTH, - Rick | My Tiki Blog | My Tiki UserPage Need more help? Try TikiWiki for Smarties.
Posted by spoudret 22 Sep 2009 17:16 UTC The solution proposed by rick99 seems to be the solution I as looking for. Thanks!