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 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:
 
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 18:20, 5 January 2007

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.