RedDot render tags and nested if-queries
Never try to nest a render tag <if> query in another <if>..
It may kill some services, which are necessary for the Navigation Manager and the other render tags.
But the RedDot guys are working on it (I hope so..).
Update (16:02)
Ok, I set the “flags” value in the RDServer.ini (inside RedDot\ASP-Folder) to “256″. This value says “create PreExecutefiles inside the RedDot-Folder”. You can do this for debugging RedDot PreExecute areas. A list of available flags, as far as I know them are:
| flags=0 | Navgation Manager deactivated |
| flags=256 | Keep creating temporary PreExecute-Files, Navgation Manager deactivated |
| flags=1024 | Navgation Manager activated, no PreExecute-Files |
| flags=1280 | Navgation Manager activated+Keep creating temporary PreExecute-Files |

Update (20080122 - 16:27)
This only happens when you nest <if>-queries with render tags like this:
<!IoRangeList>
<reddot:cms>
<if>
<query valuea=”<%!! Context:CurrentRenderMode !!%>” operator=”!=” valueb=”Int:2″>
<if>
<query valuea=”<%std_css_media%>” operator=”!=” valueb=”String:stylesheet-reddot”>
<htmltext>
@import url(”<%med_header_file%>”);
<!IoRangeNoRedDotMode><!IoRangeRedDotMode>
<%lst_css_files%>
<!/IoRangeRedDotMode><!/IoRangeNoRedDotMode>
</htmltext>
</query>
</if>
</query>
</if>
</reddot:cms>
<!/IoRangeList>

Am 16. Januar 2009 um 17:09 Uhr
No nested If statements or you might crash your server? This is considered acceptable for a professional CMS? I’m only just starting with Red Dot CMS but seeing this sort of issue scares me. Is this a real practical problem with Red Dot or is this an edge case that you don’t hit against in common use?
Am 16. Januar 2009 um 20:29 Uhr
It doesn’t crash the server but every other render tag on the same page may not be executed which is a bit annoying expecially when it comes to localization of the error.
Am 7. August 2009 um 11:45 Uhr
Hi. We’ve used nested “if” queries the way below:
We’ve used “htmltext” tag opening and closing, then inserting “if” statement, then reopening and recloseing “htmltext”. Looks a little messy but works.
Am 11. September 2009 um 14:27 Uhr
Hi Jürgen, that’s another way of doing it. In fact you can create them the way above, then there is also the or you don’t even have to nest them you just put them after another which works fine too.
Am 23. September 2009 um 12:16 Uhr
I’m working with nested if queries and everything’s fine about it - using 9.0.0.33. Should I worry about it? Perhaps this issue was fixed during the last months or weeks?
Am 24. September 2009 um 01:26 Uhr
As long as it works I wouldn’t worry. Maybe this has been fixed or “changed”
Thanks for updating!