Tags:
create new tag
, view all tags

Question

Greetings TWiki community,

I am trying to create a nested search that utilizes the TreeBrowserPlugin to display at current 3 folder levels. Example:

The following is what I have so far.

%TREEBROWSER{"file" title="Meeting Minutes"}%
%SEARCH{ "META\:TOPICPARENT.*\"%TOPIC%\"" type="regex" nonoise="on" format="   * $topic$n      * $percntSEARCH{ \"META\\:TOPICPARENT.*\\"$topic\\"\" format=\"$n      * $dollartopic\" nosearch=\"on\" nototal=\"on\" separator=\"$percntBR$percnt \" }$nop%" nosearch="on" nototal="on" }%

What I get for the output is a folder list containing the two children - MeetingMinutes2006 and MeetingMinutes2007 but none of the grandchildren underneath MeetingMinutes2007. I know it's probably just a matter of the search format but can't figure out the right combination.

Any help is most appreciated.

Thank you, Jeremy

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, TreeBrowserPlugin
Server OS: Ubuntu 7.04
Web server: Apache2
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: Firefox 2.0.0.5
Categories: Search

-- JeremyHartmann - 31 Jul 2007

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.

I have a web, Tracking, in which there are *Projects topics that collect *Project topics as children which collect *Task topics as children of the *Project. Similar structure to your meeting minutes. The key is a three level embedded search with magic escaping thrown in for good measure.

Here is what I use. I believe that you can adapt it to your specific needs.

%TREEBROWSER{"file" title="Task Management"}%
%SEARCH{".*"
web="Tracking" 
topic="*Projects" 
excludetopic="AllProjects, MyProjects" 
nonoise="on" 
format="   * $topic  
$percntSEARCH{ \"parent.*$topic\" 
web=\"Tracking\" 
topic= \"*Project\" 
nonoise=\"on\" 
format=\"      * $dollartopic 
$dollarpercntSEARCH{ \\"parent.*$dollartopic\\" 
web=\\"Tracking\\" 
topic= \\"*Task\\" 
nonoise=\\"on\\" 
format=\\"         * $dollardollartopic \\"
}$dollarpercnt \"
}$percnt"
}%

-- DewayneVanHoozer - 05 Sep 2007

 
Change status to:
Topic revision: r3 - 2007-09-05 - DewayneVanHoozer
 
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.