Monday 30 December 2013

Execute code only on the RedDot CMS server by using render tags


<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>



The possible values for rendering are:
variableType:value |explanation
Int:0Preview mode
Int:1SmartEdit mode
Int:2Publishing mode

Source :

http://blog.markusgiesen.de/2008/01/21/execute-code-only-on-the-reddot-cms-server-by-using-render-tags/