|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.web.GetTemplateFile org.weborganic.bastille.web.GetNavigation
GetNavigation
instead.
@Deprecated public final class GetNavigation
This generator returns the XML for the Navigation.
The navigation is defined at the PageSeeder level using the website properties. When
the website is published the path to the file to use for the navigation is stored in
/WEB-INF/conf/template-config.prp
as the navigation
property.
There is no reason to modify this file directly as it could be overriden when the Website is published again.
This generator does not require any parameter.
The following optional parameter can be used:
reload-conf-properties | Reloads the properties where the path to the Website navigation, navigation and navigation is stored in case the Website has been re-published by PageSeeder. |
---|
This generator return the content of the navigation file.
The content is wrapped in:
<template-file name="[navigation-filename]" status="ok">
<!-- Content of the template file -->
</template-file >
Generally, the navigation is a PageSeeder standard document, and would follow the format below:
<root>
<!-- metadata for the document -->
<ps:documentInfo edit="true"> ... </ps:documentInfo>
<!-- for each document section -->
<section id="[id]"> ... </section>
...
</root>
Refer to the PageSeeder developer Website for more information about the PageSeeder standard format.
If the file could not be found, the status will be not-found
.
To use this generator in Berlioz (in /WEB-INF/config/services.xml
):
<generator class="org.weborganic.bastille.web.Getnavigation"
name="[name]" target="[target]"/>
The etag for this generator is a weak etag based on the XML file loaded as well as that of the
Website properties configuration file template-config.prp
.
Constructor Summary | |
---|---|
GetNavigation()
Deprecated. Creates a new navigation template file generator. |
Method Summary |
---|
Methods inherited from class org.weborganic.bastille.web.GetTemplateFile |
---|
getETag, process |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.weborganic.berlioz.content.ContentGenerator |
---|
process |
Methods inherited from interface org.weborganic.berlioz.content.Cacheable |
---|
getETag |
Constructor Detail |
---|
public GetNavigation()
It extends the GetTemplateFile
class as below:
public GetNavigation() { super("navigation"); }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |