RedDot CMS “switch-case-alike” freakout!
Sonntag, den 23. März 2008Here's just a small code snippet which will fight down some of your daily RedDot horror moments:
PLAIN TEXT
XML:
<reddot:cms>
<if>
<query valuea="<%opt_fieldtype%>" operator="==" valueb="String:optionOne">
<htmltext>Case one</htmltext>
</query>
<query type="else">
<if>
<query valuea="<%opt_fieldtype%>" operator="==" valueb="String:optionTwo">
<htmltext>Case Two</htmltext>
</query>
[...]