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 templates in a Liferay theme

Previously there was also an init.vm template besides the above-mentioned five templates in a custom theme. The init.vm template was responsible for initializing some Velocity variables to be used in the other five templates. Now the Velocity variables have been initialized and placed in the Velocity context in the com.liferay.portal.velocity.VelocityVariables class. However, you can still find the init.vm template in the ${AS_ROOT_HOME}/html/themes/_unstyled/templates/ directory for the Classic theme.

init_custom.vm

You can initialize custom Velocity variables in this template. You can also set values to the existing variables to override their existing values. The variables defined here can be referenced in ...

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