|
||||||||||
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.GetHeader
GetConfigFile
instead.
@Deprecated public final class GetHeader
This generator returns the XML for the Header.
The header is defined at the PageSeeder level using the website properties. When
the website is published the path to the file to use for the header is stored in
/WEB-INF/conf/template-config.prp
as the header
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 header, header and navigation is stored in case the Website has been re-published by PageSeeder. |
---|
This generator return the content of the header file.
The content is wrapped in:
<template-file name="[header-filename]" status="ok">
<!-- Content of the template file -->
</template-file >
Generally, the header 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.Getheader"
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 | |
---|---|
GetHeader()
Deprecated. Creates a new header 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 GetHeader()
It extends the GetTemplateFile
class as below:
public GetHeader() { super("header"); }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |