A nice and new feature comes with the RedDot Navigation Manager, It’s called “render tags”. With those tags you can do a bunch of things, but today I will only show you one thing because too much show is less information and this is no homeshopping channel.
This cool tag is called “CurrentRenderMode”-Tag. Use it, if you have to execute some code, which should only be processed on your RedDot CMS system. Maybe a RQL-Skript for transferring you headlinetext to a transfer element or something else.
For using it, you have to write an <if>-query, but pay attention that you don’t nest the if-queries, it could crash your server.
<reddot:cms> <if> <query valuea="Context:CurrentRenderMode" operator="!=" valueb="Int:2"> <htmltext>
this code is only shown on the reddot server
e.g. a RQL for transfer data from one element to another…
</htmltext> </query> </if> </reddot:cms>
As you can see, in line three, there’s a query tag written by me.
heyyy, hooo.. With this query you tell the server: “Yo server, check the current render mode(valuea=”Context:CurrentRenderMode”) of this page and if it is not(operator=”!=”) the publish mode(valueb=”Int:2″) then process the following code(<htmltext>blabla</htmltext>).
The possible values for rendering are:
I hope this was helpful for you and you will use it to power-up your project.
After mono and some others asked for it I found some time and now you can find here a good overview for Render Tags