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

What we can do with Velocity templates

We can add a new template so that it can be called by the portal_normal.vm file. We can also update an existing template.

Adding a Velocity template

Each template takes care of certain content in a theme. If you want to have some additional content in a portal page, you can add a new template. Just remember to include this additional template in the portal_normal.vm file or the portal_pop_up.vm file.

Updating Velocity templates

The Velocity templates control what to show on a portal page. We can change the content on a page by doing the following updates:

  • Alter the values of Velocity references in the ${PLUGINS_SDK_HOME}/themes/${THEME_NAME}/docroot/_diffs/templates/init_custom.vm file
  • Change the content in the ...

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