Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: 7.2 RC3 - Velocity Dropped for WCD Templates
It looks like velocity has been dropped for web content templates. How does this play out in an upgrade situation?
Hi,
You will have to convert your velocity templates to Freemarker. I believe, velocity templates were deprecated in 7.0.
Arun
You will have to convert your velocity templates to Freemarker. I believe, velocity templates were deprecated in 7.0.
Arun
Hey Lee,
The option to create new Velocity templates is not offered out of the box for web content templates to avoid forcing template authors to choose, which creates additional complexity. Our recommendation nowadays is to use freemarker, but we of course still support those who have their templates written in Velocity.
To enable this as an option, go to System Settings > Web Content > Administration and add as a value for the field "Template Language Types" (See screenshot). Note that this is only necessary to create new templates. Existing ones should already be working.
BTW, Are you guys currently using only Velocity for the Web Content templates? Is there any particular reason why you chose it over Freemarker?
The option to create new Velocity templates is not offered out of the box for web content templates to avoid forcing template authors to choose, which creates additional complexity. Our recommendation nowadays is to use freemarker, but we of course still support those who have their templates written in Velocity.
To enable this as an option, go to System Settings > Web Content > Administration and add as a value for the field "Template Language Types" (See screenshot). Note that this is only necessary to create new templates. Existing ones should already be working.
BTW, Are you guys currently using only Velocity for the Web Content templates? Is there any particular reason why you chose it over Freemarker?
Attachments:
Ok thank you, good to know they won't stop working at upgrade. Yes 3 years ago the templates were written, there really wasn't anything at the time in the way of making a big deal about velocity being deprecated in 7.0. Plus we were trying to scrape enough code blocks together to author the templates with basically no official documentation and all the community messages and code samples available online were for velocity. We really need better developer support for the move to freemarker.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™