Skip to main content

Posts

Showing posts from August, 2013

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>

.GetItems() Slower than .GetListItems() - Is It Not?

An old-school Tridion best practice says " whenever possible try to use GetListItems over GetItems due to significant performance degradation on the latter ". Now that might have been very well possible on the old TOM (Tridion Object Model). But is it still the case with TOM.NET? Let's see... In my previous three posts, I have been playing with several ways of generating navigation XML based on Structure Groups and Pages: Generate Structure Group Navigation - GetItems TBB  - gets all SGs and Pages in one call to .GetItems() using a filter with Recursive=true . It then iterates the list of objects and creates an XML document using the hierarchy given by the items' OrganizationalItem property; Generate Structure Group Navigation - Reorder TBB - gets all SGs and Pages in one call to .GetListItems() using a filter with Recursive=true . It then iterates the flat XML, instantiates SG and Page objects using the Engine.GetObject() method, and uses the .Organizationa