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
--
JeremyHartmann - 31 Jul 2007
Answer
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.
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