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

Web content templates

Velocity templates have also been used in web content management in Liferay.

Web content, as displayed in the Web Content Display portlet, consists of three parts:

  • Structure (optional)
  • Template (optional)
  • Content

The structure defines placeholders (variables) for content. The content is the value for the placeholder. The template defines where to put the content.

A web content template is like the portal_normal.vm template. While the portal_normal.vm template applies to a whole portal page, a web content template applies to the area within the Web Content Display portlet.

Here we will construct web content with a Velocity template in the following steps:

  1. Log in as test@liferay.com / test.
  2. Click on the Manage dropdown list and click ...

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