Template Service API V2
Standard API (ver. 2)
- This method returns the required HTML head with common merged JS and CSS declarations.
- This method returns the header. Optional parameter "jsdisable" works together with setting this parameter on getRequiredHead.
- This method returns the required footer.
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
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.
For references, please go to www.eea.europa.eu/soer or scan the QR code.
This briefing is part of the EEA's report The European Environment - State and Outlook 2015. The EEA is an official agency of the EU, tasked with providing information on Europe's environment.
PDF generated on 25 Aug 2016, 10:35 AM