r3 - 18 Mar 2008 - 07:48:36 - SvenDowideitYou are here: TWiki >  Codev Web > ChangeProposal > FeatureRequest > AddFormatToVarURLPARAM
Tags:
, create new tag

Feature Proposal: Add format parameter to URLPARAM

Motivation

I often have the need to write the value of a url param - only if that url param is passed. For instance: name - date in a bullet list. A common use case is CommentPlugin url param expansion.

Parameter options like FORMFIELD would fit URLPARAM as well.

Description and Documentation

  • Add a format parameter to URLPARAM: %URLPARAM{"name_of_param" format="..."}%
  • Default format is $value
  • Expand the usual format tokens
  • Add a alttext parameter in case no url param with the given name is passed

Parameter: Description: Default:
format="..." Custom format value. Use format tokens? to defer variable expansion. "$value"
alttext="..." Text shown when field is not found in the form. ""

Impact

Implementation

-- Contributors: ArthurClemens - 04 Mar 2008

Discussion

this is similar and related to the ExtractAndCentralizeFormattingRefactor - we should thus be able to add format=, and presumably %FORMAT to most TML.

-- SvenDowideit - 18 Mar 2008

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo