dcm.TextWidget
The
<dcm.TextWidget>
tag provides a CMS-ready approach to displaying text.
Attributes
- Mode: Safe and Unsafe. Defaults to unsafe, prevent HTML code from being used in this widget (for example when a user edits through CMS).
Special Children
-
Tr: contains a translation to be display. Each Tr is associated with a locale, there can be any number of locales supported but they must be configured in the config.xml file. Note the
Locale
attribute is the way to indicate which locale theTr
pairs with. If the attribute is not present then defaults to the primary locale of the domain (generally the same as the locale of the site).
Usage Notes
TODO notes
Examples
<dc.Band id="introBand" Width="Medium">
<dc.FullLayout Pad="Medium">
<dc.TextWidget id="txtOverview">
<Tr Locale="eng"><![CDATA[
## Headline
Paragraph text [link text](/link-page)
]]></Tr>
<Tr Locale="spa"><![CDATA[
## Headline in Spanish
Paragraph text in Spanish [link text in Spanish](/link-page)
]]></Tr>
</dc.TextWidget>
</dc.FullLayout>
</dc.Band>
See Also
- TODO