// you’re reading...

Best practice

Breadcrumb Navigation With Render Tags

Taming the beast that Open Text so frankly called ‘Web Solutions Management Server’ we have some pretty nice tools available since version 7.1. Render Tags are a quick and effective way to create navigation elements like this breadcrumb navigation below.


    
        
            
  • <%!! Context:CurrentIndex.Headline !!%>
  • <% currentDepth = <%!! Context:CurrentDepth !!%> %>
  • <a class="first" href="<%!! Context:CurrentIndex.GetUrl() !!%>" title="<%!! Context:CurrentIndex.Headline !!%>"><%!! Context:CurrentIndex.Headline !!%></a> /
  • <a href="<%!! Context:CurrentIndex.GetUrl() !!%>" title="<%!! Context:CurrentIndex.Headline !!%>"> <%!! Context:CurrentIndex.Headline !!%></a> /
  • A pretty nice piece of code. It creates a breadcrumb navigation with several CSS class names, giving you many options to style the whole thing very detailed.

    Embed this in your project

    1. Put it in a separate template
    2. Create a container (for example ‘con_breadcrumb’) in your MasterPage(s)
    3. Create ONE instance of the breadcrumb template in the container inside the homepage template (you don’t need to place the container in the HTML of your homepage it’s just a good place to store unique project wide pages)
    4. Reference the ‘con_breadcrumb’ container in your homepage page to all MasterPage templates (and if required to all already exisiting pages – thankfully there is a plugin available from Open Text for this, just ask them!)

    Done.

    Credits

    I asked Neil Fegen, if I can use his enhanced version of the script from Ingo Hillebrand who came up with it last Friday on the RedDot Google Group. Thank you guys for sharing this stuff with us!

    Share and Enjoy:
    • Print
    • email
    • Twitter
    • Digg
    • Reddit
    • StumbleUpon
    • Google Bookmarks
    • del.icio.us
    • MisterWong
    • Facebook
    • LinkedIn
    Related posts:
    1. Digging deeper with Navigation Manager Render Tags – A Beginner’s Guide
    2. Character Encoding within Navigation Manager
    3. Growing your navigation beyond the basic tree
    4. Import and export for different RedDot CMS versions
    5. Plugin: Show template usage in child projects

    About the author:

    Markus Giesen Markus Giesen is a 28 years young, flexible RedDot CMS developer/consultant, formerly based in the south of germany. He was 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 that as a new member of the Open Text Partner Areeba, located in Melbourne. In his freetime you will find him reading, snowboarding or travelling. You should follow him on Twitter!

    Discussion

    3 comments for “Breadcrumb Navigation With Render Tags”

    1. Hi Marcus,

      nice Work, but can it be that`s the closeing Tag is missing ?

      Posted by Bastian | November 3, 2009, 9:39 am
    2. i mean the closing “a” tag.

      Posted by Bastian | November 3, 2009, 9:40 am
    3. True, the code was a bit messed up. I fixed it. Thanks!

      Posted by Markus Giesen | November 3, 2009, 12:19 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