Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template Format
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
#REDIRECT [[API:EPrints/Apache/Template]] {{formats}} 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: <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. To prevent markup in the <title> tag you can supress it by adding a textonly="yes" attribute to a pin. eg. <title><epc:pin ref="title" textonly="yes" /></title> You can also use <epc:print> elements, and the {} equivalent from inside attributes. See [[EPrints Control Format]] for the full details of the syntax. The most useful way to use this inside href attributes to include values from the configuration. For example: <a href="{$config{perl_url}}/search">Search</a> or inserting a phrase (eg. ruler) <epc:phrase ref="ruler" />
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Formats
(
edit
)
Template:RefLinks
(
edit
)