Feature Proposal: add format to META{"parent"}
Motivation
(originally written in
HowToShowParentTopics)
Today I was missing the ability for META{"parent"} to use a format parameter. So now I have a small update to RenderDotPm that makes this possible (for the $web and $topic values).
Syntax:
%META{"parent" nowebhome="on" format="something before $web.$topic something after" prefix="" suffix=""}%
--
ArthurClemens - 26 Mar 2005
Impact and Available Solutions
Note: Patch is attached as
render_parent_with_format. The patch is against
RenderDotPm svn rev 1747.
Documentation
Forthcoming
Examples
Real life example that uses
AddFormfieldParamToMetaParent:
<div class="twikiHomePath">
You are here: [[%WEB%.WebHome][%WebPreferences.CLIENTNAME%]] %META{"parent" formfield="Pagetitle" nowebhome="on" format=" <span class='twikiSeparator'>></span> [[$web.$topic][$formfield]]"}% <span class='twikiSeparator'>></span><strong> %FORMFIELD{"Pagetitle" topic="%TOPIC%" format="<nop>$value" alttext="<nop>%TOPIC%"}% </strong>
</div>
Implementation
See patch.
Discussion:
I don't think this is acceptable, for the reasons given in
AddFormfieldParamToMetaParent, so I'm dropping it from Dakar.
--
CrawfordCurrie - 14 Apr 2005