Skip to main content

 Advanced

Advanced topics

Generator: GetBreadCrumbFromBerliozPath

Class name:org.weborganic.bastille.xml.GetBreadCrumbFromBerliozPath
Version:14 July 2011
Library:Bastille
Cacheable:Yes
Generated:2012-12-21

Description

This generator returns the breadcrumb status based on Berlioz path.

Returned XML

<breadcrumbs>
  <breadcrumb name="string"
              path="string"
              exist="true|false"/>
</breadcrumbs>

The example cases

If Berlioz path is ‘Ping/pong’, it looks at the status of ‘Ping.xml’, ‘Ping’ folder, ‘Ping/pong.xml’ and ‘Ping/pong’ folder 

 

Ping.xml doesn’t exist. Ping folder exists.

The return XML is:

<breadcrumbs>
  <breadcrumb name="ping" path="/ping" exist="true"/>
</breadcrumbs> 

 

Ping.xml doesn’t exist. Ping folder doesn’t exist.

The return XML is:

<breadcrumbs>
  <breadcrumb name="ping" path="/ping" exist="false"/>
</breadcrumbs> 

 

Ping.xml does exist. Ping folder doesnt exist.

The return XML is:

<breadcrumbs>
  <breadcrumb name="ping" path="/ping" exist="true"/>
</breadcrumbs> 

 

Ping.xml exists. Ping exists.

The return XML is:

<breadcrumbs>
  <breadcrumb name="ping" path="/ping" exist="true"/>
</breadcrumbs>
Created on , last edited on