Smartsite SXML CopyCode image Copy Code
Example 1.
<se:text>
    This text will not be visible.
    {this.setforcedresult("Output this instead.")}
</se:text>

Example 2.
<se:text>
    This text will not be visible.
    {this.setforcedresult("Output this instead.")}
    {buffer.set(ForcedResult, this.getforcedresult())}
</se:text>
This result was forced: {buffer.get(ForcedResult)}

Example 3.
<se:text>
    This text will not be visible.
    {this.setforcedresult("Output this instead.")}
    On second thought, restore the original output.
    {this.clearforcedresult()}
</se:text>
Example Result CopyCode image Copy Code
Example 1.
Output this instead.

Example 2.
Output this instead.
This result was forced: Output this instead.

Example 3.

    This text will not be visible.
    
    On second thought, restore the original output.