Question
I just tried to upgrade to Twiki 4.2 - everything seems to be OK so far - but...
I had inserted:
%INCLUDE{"%SYSTEMWEB%.HierarchicalNavigation" section="all"}%
into my sidebar. Now the structured list does not seem to work any longer. I always get:
IF{ "" else="" then=" * [[TWiki.][]]" }: Empty expression
* WebHome
instead of the child topic list.
Does anybody know why this might happen?
Environment
--
HaraldLipke - 28 Feb 2008
Answer
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.
Did you edit this with RAW or wysiwyg. 4.2 switches to the wysiwyg editor by default. Did you try re-editing in raw?
--
JosephTrexler - 29 Feb 2008
Yes - I tried it both ways. I even did a clean Install in a virtual machine and then only inserted the above line with raw edit. It happened again. I thought I might have made a mistake because HierarchichalNavigation in the personal sidebar is such a nice feature I think and so more people should face the same problem... But I really cannot find anything I might have done wrong during installation - and - btw. everything else works fine. Any help would be very much appreciated.
--
HaraldLipke - 01 Mar 2008
I can confirm the bug. Tracked in
Bugs:Item5405. And fixed.
If you want to use this before the next update of TWiki, copy these lines to the topic (replace existing STARTSECTION..ENDSECTIONs):
%STARTSECTION{name="all"}%<div class="twikiHierarchicalNavigation">
<ul>
%SEARCH{
"parent"
type="query"
topic="%BASETOPIC%"
web="%BASEWEB%"
nonoise="on"
format="<li class='twikiParentTopic'><img src='%ICONURL{parent_gray}%' width='16' height='16' alt='' border='0' /> [[$web.$parent][$parent]]</li>"
}%
<li class='twikiCurrentTopic' style='font-weight:bold;'><nop>%BASETOPIC%</li>%INCLUDE{"%TOPIC%" section="childlist"}%
</ul>
</div><!--/twikiHierarchicalNavigation-->%ENDSECTION{name="all"}%
%STARTSECTION{name="children"}%<div class="twikiHierarchicalNavigation">
<ul>%INCLUDE{"%TOPIC%" section="childlist"}%</ul>
</div><!--/twikiHierarchicalNavigation-->%ENDSECTION{name="children"}%</div>%ENDSECTION{name="children"}%
%STARTSECTION{name="childlist"}%%SEARCH{
"parent.name='%BASETOPIC%'"
web="%BASEWEB%"
type="query"
nonoise="on"
format="<li class='childTopic'><img src='%ICONURL{line_ur_gray}%' width='16' height='16' alt='' border='0' /> [[$web.$topic][$topic]]</li>"
}%%ENDSECTION{name="childlist"}%
I have used 2 new graphics, added to this topic. You can attach these to your TWiki.TWikiDocGraphics topic.
--
ArthurClemens - 01 Mar 2008