Sunday, January 10, 2010

Applying Accordion Function in Liferay.

Liferay Version: 5.2.3

This example refers to the accordion in this page.

The normal javascript looks like

To make it works in liferay environment, just adjust some codings for javascript.
The new coding is shown as below


To make it prettier, just edit the CSS.

Live demo for accordion in Liferay.