XF 2.2 variable with special characters

Old Nick

Well-known member
I want to use this <xf:if is="$node.title == 'Forums des régions et de l'outre-mer'"> but when i want to save the template there is an error on this line.
Probably because of régions and l'outre-mer how to write them to XF accept the template ?
Thanks ! :)
 
Solution
Another way of doing it:

HTML:
<xf:set var="$var" value="Forums des régions et de l'outre-mer" />
<xf:if is="$node.title == $var">
    Moo
</xf:if>

This avoids the conflict with the single ' character.
Another way of doing it:

HTML:
<xf:set var="$var" value="Forums des régions et de l'outre-mer" />
<xf:if is="$node.title == $var">
    Moo
</xf:if>

This avoids the conflict with the single ' character.
 
Solution
Back
Top Bottom