// you’re reading...

CMS

Render Tag CheatSheet – #1 Basics


This series will give those RedDot developers who have never worked with Render Tags before a introduction on how to use the Open Text Web Solutions Management Server Render Tags. Render Tags can replace RQL code and add new functionality to your project. By using Render Tags you can gain project performance and stability within your project. Some things can be done with RedDot Render Tags which can’t even be done with the RedDot Query Language. Other things should not be done with Render Tags and you are about to learn when to use what. The experienced users of course will get something to nibble a bit later, too.

Name Description / Code / Example
Render spot This marker is used to identify navigation manager or Render Tag code within navigation template or template where Render Tags are used.

Code


... render tag code ...

Usage & Example

Used to wrap around if statement, for each construct etc.

Shorthand The short method of Render Tag notation.

Code

<%!! Context:CurrentPage.Headline !!%>

Usage & Example

Use it to save code lines, you don’t need the render spot above wrapped around it! ;) This one gives you the current page headline.

Longhand The longer method of Render Tag notation.

Code

<reddot:cms>
  <output type="object" object="Context:CurrentPage.Headline" />
</reddot:cms>

Usage & Example

Use it to have a better overview of your code (sometimes). You always DO need the render spot above wrapped around it! This one gives you the current page headline too.

Output area This Render Tag connects an output area as set up within the navigation manager interface to a master page.

Code

<%!! Navigation:OutputArea(breadcrumb) !!%>

Usage & Example

Output navigation on master pages.
The area name is case sensitive so it’s best to copy and paste straight from your area configuration screen.

If you are starting to build projects and find this useful you should also have a look into the great RedDot CMS tutorial by Adrian Mateljan called “The One True Container – RedDot CMS Tutorial – Part I” which you can find here.

Share and Enjoy:
  • Print
  • email
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • MisterWong
  • Facebook
  • LinkedIn

No related posts.

About the author:

Markus Giesen Markus Giesen is a Solutions Architect and RedDot CMS Consultant, formerly based in Germany. Travelling around the world to find and offer solutions for a better world (in a very web based meaning). He just found a way to do this as part of a Melbourne based online consultant house. On this blog Markus shares his personal (not his employers) thoughts and opinions on CMS and web development. In his spare time you will find him reading, snowboarding or travelling. Also, you should follow him on Twitter!

Discussion

5 comments for “Render Tag CheatSheet – #1 Basics”

  1. The shortcut examples are not displaying :)

    Posted by Paul | April 8, 2010, 9:04 pm
  2. Just fixed this! Thanks Paul! Didn’t even know you were around! What happened to you?

    Posted by Markus Giesen | April 11, 2010, 2:19 pm
  3. Are render tags only reliable if you use navigation manager? I’ve tried using but it only gives the original headline not the current version if its been modified. We don’t use navigation manager, we use an Oracle database, and we are running version 9.0.1.84 of the CMS.

    Posted by Lise McGillis | February 14, 2011, 9:36 pm
  4. Hey Lise, you need to activate Navigation Manager in order to use RenderTags, which one of the above examples did you use?

    Posted by Markus Giesen | February 15, 2011, 2:16 am
  5. Hi Markus,

    I used the Context:CurrentPage.Headline. It works to a degree so it’s deceiving. I though maybe there would be some that we could use reliably without enabling navigation manager, but I what you are saying is absolutely not, correct?

    Lise

    Posted by Lise McGillis | February 15, 2011, 6:04 pm

Post a comment



Stay up to date! - Get notified about followup comments

If you don't feel the urge to comment but wish to stay in the loop:
Just enter your email and subscribe to new comments.

Subscribe without commenting

Recent Tweets

  • RT @AirKraft: Transport Canada breakout: they manage 80K pages and 300K assets with WSM(RedDot). Wow! #OTCW 2010-11-11
  • The RedDot usergroup session 'Future of WCM' is in National Harbor 7, now. See you there! #otcw 2010-11-11
  • RT @yttergren: @AirKraft: Calling all WSM(RedDot) devs: share your solutions on http://bit.ly/bgPIof EVERY solution can win an iPad #OTCW 2010-11-10
  • Come to the Solution Exchange session. Enhance your (#reddot) CMS project! Chesapeake 12, 3:20pm #otcw Looking forward to see you there! 2010-11-10
  • More updates...