Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleExample of Usage

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

Code Block
languagexml
titleProperty 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").

Code Block
languagexml
titleProperty 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>

...