Message Boards

How to switch template language from Velocity to FreeMarker? LifeRay 7.2

Nikita Laitinen, modified 4 Years ago.

How to switch template language from Velocity to FreeMarker? LifeRay 7.2

Junior Member Posts: 44 Join Date: 12/18/19 Recent Posts
The problem is I can't switch template lang inside web content to Freemarker.
Maybe anyone know how to activate it in portal settings? Or it is impossible and I just have to create the new one template with FreeMarker lang by default?
thumbnail
Vahid Kh, modified 4 Years ago.

RE: How to switch template language from Velocity to FreeMarker? LifeRay 7.

Junior Member Posts: 54 Join Date: 8/6/19 Recent Posts
Go to Control Panel > Configurations > System Setting > Web Content
inside Web content setting find Administration menu and then Template Language Types field
by + button add new field and add ftl as its content and save it,
Now in adding a new web content you can select your template language
But by default in Liferay  7.2 the template language must be Freemarker
Nikita Laitinen, modified 3 Years ago.

RE: How to switch template language from Velocity to FreeMarker? LifeRay 7.

Junior Member Posts: 44 Join Date: 12/18/19 Recent Posts
thank you!