Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Custom Global Markup

azzazzel edited this page Nov 1, 2010 · 3 revisions

Custom Global Markup is Liferay portlet which allows to add markups (javascript, css, html) to every page in given community. It was developed to provide an easily manageable solution for “integrating” Liferay with Google Analytics, Geminus, ClickTale, Crazy Egg, and whole bunch of other analytics tools available out there.

The solution was inspired by Samuel Kong’s excellent post http://www.liferay.com/web/samuel.kong/blog/-/blogs/adding-a-javascript-to-every-page. The portlet employees the same technique but also provides convenient management interface in Liferay’s control panel:

This way portal administrator can easly add/modify/delete any markup (javascript, CSS, HTML, …) at runtime. Since markups are divided into entries each one can be enabled/disabled at any time. Also markups can be placed on top (in <head> section) or bottom (before </html>) of the page. Custom Global Markup portlet is community scoped, which allows adding markup to pages of specific community.

Clone this wiki locally