projectdoc Toolbox

Requests to normalize the referenced values to allow inserting as raw XHTML.

Tags
Identifier
projectdoc-adjustVarValues-toXhtml
Type
List of Strings
Value Range
List of blueprint parameter names.
Since
1.11

This property allows template authors to render an XHMTL value instead of a plain string entered by the user with a wizard.

Since it is used to normalize property values, redundant block elements are removed.

Example of Usage

 A template author decides to allow XHTML for the short description (identified by projectdoc.doctype.common.shortDescription) in the wizard.

Property in the Soy Template
<textarea 
  id="projectdoc.doctype.common.shortDescription" 
  name="projectdoc.doctype.common.shortDescription" 
  class="textarea long-field" 
  placeholder="{getText('projectdoc.blueprint.form.label.shortDescription.placeholder')}"
  rows="6"></textarea>

<input 
  id="projectdoc-adjustVarValues-toXhtml"
  name="projectdoc-adjustVarValues-toXhtml"
  type="hidden"
  value="projectdoc_doctype_common_shortDescription"> 

In the template the property is now inserted as raw XHTML (at:rawxhtml="true").

Property in Page Template
<tr>
  <th class="confluenceTh"><at:i18n at:key="projectdoc_doctype_common_shortDescription"/></th>
  <td class="confluenceTd"><at:var at:name="projectdoc_doctype_common_shortDescription" 
                                   at:rawxhtml="true"/></td>
  <td class="confluenceTd"></td>
 </tr>

Variable Names

 

Since version 6.0 all dots in variable names have been replaced by underscores.

Before 6.xSince 6.x
projectdoc.doctype.common.shortDescriptionprojectdoc_doctype_common_shortDescription

Note that references to resources (for instance labels) and identifiers for property names still use dots as delimiters.