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

    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

    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

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