Developer manual
replace
The replace Spring tag currently works in layout.xml and content entered in any wysiwyg editor on any page or asset.
Currently replace will work on h1, h2, h3, h4, h5, h6, p and span tags
Example 1:
<h1 class="replace" id="stagenumber"/>
If "stagenumber" is set, will return:
<h1 class="replace" id="stagenumber">Value of Stage Number</h1>
If "stagenumber" is not set, will return:
Nothing
Example 2:
<h1 class="replace" id="stagenumber">Default Value</h1>
If "stagenumber" is set, will return:
<h1 class="replace" id="stagenumber">Value of Stage Number</h1>
If "stagenumber" is not set, will return:
<h1 class="replace" id="stagenumber">Default Value</h1>