Tags:
create new tag
, view all tags

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'>&gt;</span> [[$web.$topic][$formfield]]"}% <span class='twikiSeparator'>&gt;</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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch render_parent_with_format.patch r2 r1 manage 1.4 K 2004-09-16 - 01:22 ArthurClemens (Updated patch) - Diffed against svn rev 1747
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-08-13 - RafaelAlvarez
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.