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 Action Size Date Who Comment
Unknown file formatpatch render_parent_with_format.patch manage 1.4 K 2004-09-16 - 01:22 ArthurClemens (Updated patch) - Diffed against svn rev 1747
Topic revision: r4 - 2008-08-13 - RafaelAlvarez
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.