Parent - child navigation for side bar
I am trying to create a navigation enhancement:
The raw search text:
%SEARCH{ "^%BASETOPIC%$" scope="topic" web="%BASEWEB%" regex="on" nosearch="on" nototal="on" zeroresults="off" format="- $parent(15, ...) %BR%" }%
*%BASETOPIC%* %BR%
%METASEARCH{type="parent" topic="%BASETOPIC%" format="- $topic(15, ...) %BR%"}%
Somehow I cannot get the parent right: when there is none, nothing should be displayed.
Furter, although the format says to put a BR after each found topic, some topics are listed next to each other.
--
ArthurClemens - 05 Feb 2006
Maybe you describe in more detail what you are trying to do here. What about a mockup.
works fine on a dakar engine.
--
MichaelDaum - 06 Feb 2006
I am trying to re-implement the navigation part in
http://visiblearea.com/cgi-bin/twiki/view/Flash/Design_
.
What I need is:
ParentTopic
CurrentTopic
ChildTopic 1
ChildTopic 2
ChildTopic 3
ChildTopic 4
ChildTopic 5
ChildTopic 6
ChildTopic 7
ChildTopic 8
Parent and children should be found in the current web (BASEWEB).
--
ArthurClemens - 06 Feb 2006
try the
TreePlugin
--
SteveStark - 18 Nov 2006
Since revision 11927 meta search understands format parameters. The search string now is:
%SEARCH{ "^%BASETOPIC%$" scope="topic" web="%BASEWEB%" type="regex" nonoise="on" format=" * $parent" }%
* *%BASETOPIC%*
%METASEARCH{type="parent" topic="%BASETOPIC%" format=" * $topic"}%
--
ArthurClemens - 18 Nov 2006
This is now implemented in
HierarchicalNavigation.
--
ArthurClemens - 21 Apr 2007