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:
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: