Skip to main content

Posts

Showing posts with the label REL

Simple XML/XSLT Breadcrumb

This post presents an example on how to transform a navigation XML with a parameterized XSLT in order to produce a simple breadcrumb. Navigation XML The navigation XML is produced using one of the TBBs described in earlier posts: Generate Structure Group Navigation - Recursive TBB ; Generate Structure Group Navigation - GetItems TBB ; Generate Structure Group Navigation - Reorder TBB ;  Navigation XML format: <tcm:ListItems  ID="tcm:1-1-4" Title="Root" >   <tcm:Item ID="tcm:1-2-4" Title="010 About Us" DisplayTitle="About Us" Url="/about-us">     < tcm:Item ID="tcm:1-3-64" Title="010 Who are we?" DisplayTitle="Who are we?" Url="/about-us/who-are-we.html"/ >   </tcm:Item>   < tcm:Item ID="tcm:1-4-64" Title="020 Contact Us" DisplayTitle="Contact Us" Url="/contact-us.html"/ > </tcm:ListItems> Bread...

Simple XML/XSLT Navigation

This post presents an example on how to transform a navigation XML with a parameterized XSLT in order to produce a simple site navigation. Navigation XML The navigation XML is produced using one of the TBBs described in my earlier posts: Generate Structure Group Navigation - Recursive TBB ; Generate Structure Group Navigation - GetItems TBB ; Generate Structure Group Navigation - Reorder TBB ;  Navigation XML format: <tcm:ListItems  ID="tcm:1-1-4" Title="Root" >   <tcm:Item ID="tcm:1-2-4" Title="010 About Us" DisplayTitle="About Us" Url="/about-us">     < tcm:Item ID="tcm:1-3-64" Title="010 Who are we?" DisplayTitle="Who are we?" Url="/about-us/who-are-we.html"/ >   </tcm:Item>   < tcm:Item ID="tcm:1-4-64" Title="020 Contact Us" DisplayTitle="Contact Us" Url="/contact-us.html"/ > </tcm:ListItems>...

REL Standard Tag Library - Installation

This post explains the steps to install RSTL on your Tridion presentation server. For more information about RSTL, check out my post  REL Standard Tag Library . To download RSTL go to my Google Code page . Always use the  latest JAR . Prerequisites Although installation itself is very simple, there are some prerequisites: Install and configure a Content Delivery server. This can be either a Java or .NET. If CD API is used, make sure you call the PageContentAssembler to assemble Pages and ComponentPresentationAssembler to assemble Component Presentations. This ensures the REL tags are executed; If CD Web Service (OData) is used, make sure all content is published to the CD DB; Create and configure a Deployer that publishes the content and/or metadata to the CD DB: For CD API, content does not have to be in the CD DB, but in order to execute REL tags it should be; for OData, all content and metadata should be in the CD DB; Create and configure a Publication ...

REL Standard Tag Library

The RSTL is a library of REL tags providing standard functionality such as iterating collections, conditionals, imports, assignments, XML XSLT transformations, formatting dates, etc. RSTL distributable is available on my Google Code page under  REL Standard Tag Library . Always use the latest JAR . This post describes each RSTL tag in the library explaining its functionality, attributes and providing examples. For understanding the way expressions are evaluated, please read my post about the  Expression Language used by REL Standard Tag Library . <c:choose> / <c:when> / <c:otherwise> Syntax:     <c:choose>         <c:when test="expr1">             Do something         </c:when>         <c:when test="expr2">             Do something else         </c:when...

REL Standard Tag Library - Expression Language

The REL Standard Tag Library (RSTL) is the Tridion equivalent to JSTL (JSP Standard Tag Library) and aims to provide the same functionality for Tridion REL. This post presents the Expression Language used in RSTL tag attributes. If you are interested in the RSTL itself, check out my post REL Standard Tag Library . RSTL can be downloaded from my Google Code page, under REL Standard Tag Library . Always use the latest JAR . Expression Language The tag attributes support an expression language allowing it to reference existing context variables, to evaluate mathematical and conditional expressions. I implemented an expression parser to evaluate such expressions. ${ expression } Notation This notation is available inside tag attributes. The parser evaluates the expression inside (as mathematical expression) and returns its value. Logical Expressions Logical expressions produce a boolean value: true or false . Syntax:     [!|not] expression [ logical_operator ...