Personal tools

Notifications
Get notifications on new reports and products. Frequency: 3-4 emails / month.
Subscriptions
Sign up to receive our reports (print and/or electronic) and quarterly e-newsletter.
Follow us
Twitter icon Twitter
Facebook icon Facebook
YouTube icon YouTube channel
RSS logo RSS Feeds
More

Write to us Write to us

For the public:


For media and journalists:

Contact EEA staff
Contact the web team
FAQ

Call us Call us

Reception:

Phone: (+45) 33 36 71 00
Fax: (+45) 33 36 71 99


next
previous
items

Skip to content. | Skip to navigation

Sound and independent information
on the environment

You are here: Home / Code and APIs for developers / EEA Template Service and API / Template Service API V2

Template Service API V2

This API is used to integrate a website into the EEA standard design.

Standard API (ver. 2)

getRequiredHead
This method returns the required HTML head with common merged JS and CSS declarations.
http://www.eea.europa.eu/templates/v2/getRequiredHead
  • Disabling Javascripts and KSS: Javascript libraries and KSS can be disabled in template service by sending argument jsdisable='all' to getRequiredHead. The same argument should be sent to getHeader also.

getHeader
This method returns the header. Optional parameter "jsdisable" works together with setting this parameter on getRequiredHead.
http://www.eea.europa.eu/templates/v2/getHeader
getFooter
This method returns the required footer.
http://www.eea.europa.eu/templates/v2/getFooter

I18N: Translated template

In order to get a translated version of the EEA template, please add the 2-letters ISO 639-1 language code into the URL call. For example, to get the header in Italian you would call the header like this:

The language code is used, it must be used consistently on all the calls, in order to not mix languages.

Performance and caching

All the template service calls are cached by a proxy cache system (squid) at the EEA servers. This improves the response time from EEA.

However we do not reccomend to rely solely on the EEA template service when thinking about performance. We strongly recommend you locally cache each call to the template service and then provide a way to EEA for invalidating and refreshing your local cached template.

For example, you should provide a URL similar either as

parameter http://myproject.eea.europa.eu/?refreshtemplate=1 or

page http://myproject.eea.europa.eu/refreshtemplate.

This will allow EEA to refresh the templates on all sites when a new template and CSS is available. In this way all sites will stay synchronized with latest design and main navigation.

Geographical coverage

[+] Show Map

Document Actions

Comments

European Environment Agency (EEA)
Kongens Nytorv 6
1050 Copenhagen K
Denmark
Phone: +45 3336 7100