Back to Contents


How to Create a Breadcrumb Trail

The following code displays the list of windows, otherwise known as a "breadcrumb trail".

<div gwc:condition="application/ui">
  <span gwc:repeat="w application/ui/windows">
  <span gwc:condition="w/form" gwc:content="' :: ' + ( w/form/text || w/text || w/form/name )"/>
  <span gwc:condition="!w/form" gwc:content="' :: ' + w/name"/> </span>
</div>
You add this code to your template file (the main.xhtml file within the snippet set). Where you place this code in your file determines where the breadcrumb trail appears within the application interface.