Tags:
create new tag
, view all tags

Question

I am trying to exclude the parent topic from my search. I have tried putting the META{"parent"} in my excludetopic and $parent, but they don't seem to work. Can this ben done?

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP
Web server: Apache 2.2
Perl version:  
Client OS: Windows XP
Web Browser: IExplorer, Firefox
Categories: Search

-- GlennHart - 17 Apr 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Hm, have created an example set in the Sandbox web.

By using type="query" in TWiki 4.2 this would be a lot more transparent I guess.

-- FranzJosefGigler - 17 Apr 2008

if you want to exclude just the parent of the topic you are searching from, add excludetopic="%META{ "parent" dontrecurse="on" nowebhome="on" format="$topic" }%" to your SEARCH.

-- PeterThoeny - 17 Apr 2008

Thanks for your help. Peter, that was was nice and neat.

-- GlennHart - 18 Apr 2008

-- GlennHart - 18 Apr 2008

 
Change status to:
Topic revision: r4 - 2008-04-18 - GlennHart
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.