Posts

Fixing missing variables in ADT Template

Image
Fixing missing variables in ADT Template You may get error for missing variable in your custom ADT template, like this: The following has evaluated to null or missing: ==> staticUtil  [in template… To fix this - you need to remove it from restricted variables. 1. Go to Control Panel -> Configuration -> System setting -> Foundation. 2. Search for ‘Freemarker’. 3. Click ‘Edit’ for ‘Freemarker Engine’. 4. Remove ‘staticUtil’ from restricted variables and save configuration: (you may also remove other variables you need) Note: this settings may not be applied on-the-fly, Liferay restart may be needed. After this you may use Liferay restricted variables in your ADT templates šŸ˜

Liferay OSGi modules’ versions

Liferay OSGi modules’ versions Sometimes when we reference some Liferay dependency - it’s hard to find exactly the same version, which causes errors during deployment (Import-Package errors, ClassNotFound, etc.). Fortunately, all these dependencies’ versions are listed in modules.properties file inside liferay sources For Liferay 7.2 GA1 the file is under this path: liferay-ce-portal-src-7.2.0-ga1-20190531153709761.zip!/liferay-ce-portal-src-7.2.0-ga1/modules/modules.properties ) And here is a complete list with dependencies for 7.2 GA1: com.liferay.adaptive.media.api=4.0.4 com.liferay.adaptive.media.blogs.editor.configuration=3.0.3 com.liferay.adaptive.media.blogs.item.selector.web=3.0.1 com.liferay.adaptive.media.blogs.test=1.0.0 com.liferay.adaptive.media.blogs.web=3.0.3 com.liferay.adaptive.media.blogs.web.fragment=3.0.3 com.liferay.adaptive.media.blogs.web.test=1.0.0 com.liferay.adaptive.media.content.transformer.api=3.0.1 com.liferay.adaptive.media...