Template Format

From EPrints Documentation
Revision as of 18:20, 5 January 2007 by Moj (talk | contribs)
Jump to: navigation, search

EPrints uses a template file when rendering all pages to ensure a consistent look and feel. The templates folder typically contains two such files - default.xml for non-secure pages, and secure.xml for secure pages.

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.