Skip to main content

 Advanced

Advanced topics

Generator: GetNavTreeFromMasterDoc

Class name:org.weborganic.bastille.xml.GetNavTreeFromMasterDoc
Version:11 May 2011
Library:Bastille
Cacheable:Yes
Generated:2012-12-21

Description

Generate the Navigation Tree.

Configuration

No configuration is required for this generator.

Parameters

  • master-file – defines the location of master file.
  • display-level – (optional) defines the resolve level, (default: 2).
  • pswebsite-root – (optional) defines the path of website root in PageSeeder.
  • pswebsite-content – (optional) defines the content folder in PageSeeder.

Returned XML

<navs>
  <nav level="1"
         title="1 Introduction"
         href="/publications/wbm/1_Introduction/1_Introduction.xml">
    <nav level="2"
         title="Introduction"
         href="/publications/wbm/1_Introduction
                /Introduction_women_s_health.xml"/>
    <nav level="2"
         title="Looking after women's health"
         href="/publications/wbm/1_Introduction
                /Looking_after_women_s_health.xml"/>
  </nav>
  <nav level="1"
       title="2  Emergencies"
       href="/publications/wbm/2_Emergencies/2_Emergencies.xml">
    <nav level="2"
         title="Coping after emergencies"
          href="/publications/wbm/2_Emergencies
                 /Coping_with_emergencies.xml"/>
    <nav level="2"
         title="How to manage emergencies"
         href="/publications/wbm/2_Emergencies
                /How_to_manage_emergencies.xml"/>
    ...
    <nav level="2"
         title="Heavy vaginal bleeding"
         href="/publications/wbm/2_Emergencies
                /Heavy_vaginal_bleeding.xml"/>
  </nav>
<navs>

Configuration

<generator class="com.weborganic.bastille.xml.GetNavTreeFromMasterDoc"
           name="sourcemasterxml"
           target="main">
  <parameter name="pswebsite-root" value="content"/>
  <parameter name="master-file" value="ui5/ui5"/>
  <parameter name="display-level" value="3"/>
</generator>
Created on , last edited on