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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-04-18 - GlennHart
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.