Difference between revisions of "Template Format"

From EPrints Documentation
Jump to: navigation, search
Line 1: Line 1:
EPrints uses a template file when rendering all pages to ensure a consistent look and feel. The [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/templates|templates]] folder typically contains two such files - default.xml for non-secure pages, and secure.xml for secure pages.
+
EPrints uses a template file when rendering all pages to ensure a consistent look and feel. The [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/lang/en/templates|templates]] folder contains a default.xml file which contains the normal template. Later versions of EPrints may allow additional templates.
  
 
The template file is an HTML document, but may also include EPrints Control elements. Four parameters are passed through - title, page, pagetop, and head - and these may be included using a pin element:
 
The template file is an HTML document, but may also include EPrints Control elements. Four parameters are passed through - title, page, pagetop, and head - and these may be included using a pin element:

Revision as of 16:37, 6 January 2007

EPrints uses a template file when rendering all pages to ensure a consistent look and feel. The templates folder contains a default.xml file which contains the normal template. Later versions of EPrints may allow additional templates.

The template file is an HTML document, but may also include EPrints Control elements. Four parameters are passed through - title, page, pagetop, and head - and these may be included using a pin element:

<epc:pin ref="head"/>

The title pin should be placed in the title tags of the HTML document, the page pin somewhere in the body, the pagetop at the start of the body section, and the head within the head tags at the beginning of the file.