%INCLUDE{"%SANDBOXWEB%.ParentTopic" section="all"}%and i got this: Warnung: Konnte Topic ParentTopic nicht finden (in english something like: Attention: ... not found ...) -- SimonEd - 04 Nov 2011 The include needs to be for the system web topic. The section you include is actually a query search for the parents and children of the including topic.
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%Which shows: -- GeorgeClark - 04 Nov 2011 I understand right, this is only working in the Systemweb? How to get a list of all childs of a specific topic in an specific web. which is not the Systemweb? -- SimonEd - 05 Nov 2011 No - it works in ANY web. The query being %INCLUDEd searches for the BASETOPIC and BASEWEB. These variables are the topic and web that is requested in the URL, not the included topic. In the above example I wrote, it is showing this task - Item11237, and it's parent topic - WebHome. I'll add an Item11237Child task as well. If you want the children of some other topic than the topic where you write %INCLUDE ... You need to actually write the query in your topic directly, except use the desired web and topic instead of BASEWEB and BASETOPIC macros.
%SEARCH{ "parent.name='%BASETOPIC%'" web="%BASEWEB%" type="query" nonoise="on" format="<li class='childTopic'>$percentICON{line_ur_gray}$percent [[$web.$topic][$topic]]</li>" }%-- GeorgeClark - 05 Nov 2011 thanks. sorry, i`m not an expert ... there seems to be a special trick. or it is a mystery. the code you posted does not work. I replaced BASETOPIC and BASEWEB with the desired ("ParentTopic"+"SANDBOXWEB"). (I've copied the code and edited it in the windows-editor, and then i pasted in the wikitexteditor of the endtopic. so there is no <pre> or verbatim or something like this.) but this "end"topic shows is only the code itself - and nothing else??? -- SimonEd - 07 Nov 2011 sorry for that "pre" -- SimonEd - 07 Nov 2011 You are probably better off working directly in the wiki text editor, and not cutting/pasting things between windows and the wiki. Look at this topic Item11237?raw=on raw view to see the following code. I've modified it to show the children of the Development.FeatureRequest topic. It looks like I had a cut/paste error in the above example - missed the ending }% ... which I've added in. (Note for general usage and support questions like this, the Support web is a more appropriate location, or better yet, by using our IRC discussion forum, you can get realtime help.
---+++ Children for [[Development.FeatureRequest]] %SEARCH{ "parent.name='FeatureRequest'" web="Development" type="query" nonoise="on" format="<li class='childTopic'>$percentICON{line_ur_gray}$percent [[$web.$topic][$topic]]</li>" }%
Summary | Hierarchical Navigation don`t work |
ReportedBy | SimonEd |
Codebase | |
SVN Range | |
AppliesTo | Engine |
Component | |
Priority | Normal |
CurrentState | No Action Required |
WaitingFor | |
Checkins | |
TargetRelease | n/a |
ReleasedIn | n/a |
trunkCheckins | |
Release01x01Checkins |