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 will look at the status of 'Ping.xml', 'Ping' folder, 'Ping/pong.xml' and 'Ping/pong' folder

 

 

 

Ping.xml is not exist. Ping folder exist

The return XML will be

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

 

 

 

Ping.xml is not exist. Ping folder is not exist

The return XML will be

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

 

 

 

Ping.xml is exist. Ping folder not exist

The return XML will be

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

 

 

 

Ping.xml is exist. Ping exist

The return XML will be

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

Created on , last edited on