O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Velocity references for templates

Many Velocity references are placed in the Velocity context in the insertHelperUtilities(…) method of the com.liferay.portal.velocity.VelocityVariables class. Others are added in the doTransform(...) method of the com.liferay.portlet.journal.util.VelocityTemplateParser class.

References for both themes and web content

These references are put in the Velocity context in the insertHelperUtilities(...) method of the com.liferay.portal.velocity.VelocityVariables class.

You can use the $ sign to directly reference these objects in theme templates and web content templates:

Object

Description

arrayUtil

A com.liferay.portal.kernel.util.ArrayUtil_IW object

auditMessageFactoryUtil

A com.liferay.portal.kernel.audit.AuditMessageFactory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required