This tag is commonly used in skins to render the breadcrumbs of a topic page.
Unfortunately the implementation of this tag returns not only the parent
but also the squared brackets to make it a twiki link. This is superfluous
as the renderer does so on its own (given surrounding whitespaces).
So I'd propose that
%META{"parent" dontrecurse="on"}%
(dont mind dontrecurse="on") to return
ParentWeb.ParentTopic
instead of
[[ParentWeb.ParentTopic][ParentTopic]]
Here's the patch
--- lib/TWiki/Render.pm (revision 9851)
+++ lib/TWiki/Render.pm (working copy)
@@ -140,7 +140,7 @@
( $pTopic eq $TWiki::cfg{HomeTopicName} ) ||
$visited{$parent} );
$visited{$parent} = 1;
- unshift( @stack, "[[$parent][$pTopic]]" );
+ unshift( @stack, $parent );
last if $dontRecurse;
$parent = $store->getTopicParent( $pWeb, $pTopic );
}
This issue arose during
TWiki:Support.HowToIncludeAllParentTopics
.
SVN 9952, 9926 --
MD
This is a compatibility issue. The reason for the bracket link is so that non-WikiWord topics get linked properly, such as
Singelton
,
Y2000Question
,
Topic_With-Dash-etc
.
This should be enhamced with compatibility in mind, such as a format parameter.
--
PTh
I reverted the change since it broke parent display if the parent has a non-WikiWord name. Example:
Sandbox web > TestTopic1 > Sandbox.Foo-Bar > ChildTopic
Please enhance with a format="" parameter or the like.
--
PTh
Done. --
MD
Released 4.0.3
--
KJL