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

Chapter 7. Velocity Templates

Liferay uses Velocity templates to accumulate theme components. In Chapter 2, Basic Theme Development, we talked about Velocity templates for themes. In this chapter, we study this topic more extensively. Particularly, we will talk about the following aspects of Velocity templates:

  • Velocity template language
  • Velocity template
  • Velocimacro
  • Velocity portlet
  • Five basic Velocity templates for a theme
  • Velocity templates and site performance
  • Theme customization through Velocity templates
  • Velocity template for Web Content portlet
  • FreeMarker template

We will start with some basic concepts. After that, we will try to create our own themes.

Before we start

Velocity templates are used in three places in Liferay portal:

  • Theme
  • Page layout

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