Migrating Off of Velocity Templates

Velocity templates were deprecated in Liferay Portal 7.0 and are now removed in favor of FreeMarker templates in Liferay DXP 7.1. Below are the key reasons for this move:

  • FreeMarker is developed and maintained regularly, while Velocity is no longer actively being developed.

  • FreeMarker is faster and supports more sophisticated macros.

  • FreeMarker supports using taglibs directly rather than requiring a method to represent them. You can pass body content to them, parameters, etc.

Although Velocity templates still work in Liferay DXP 7.1, we highly recommend migrating to FreeMarker templates. For more information on this topic, see the Upgrading Layout Templates section.

« Upgrading Service BuilderUpgrading Portlet Plugins »
Was this article helpful?
0 out of 0 found this helpful