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
how I can retrieve Group configration in freemarker
I have created a custom configuration in liferay setting , but I do not know how I can access these configurations from Freemarker.
<#assign groupId1 = themeDisplay.getScopeGroupId()>
<#assign groupId =ParamUtil.getLong(renderRequest,
"groupId", themeDisplay.getScopeGroupId())/>
<#assign companyId1 =
themeDisplay.getSiteGroup().getCompanyId()>
<#assign
portletDisplay = themeDisplay.getPortletDisplay()>
<#assign configurationProvider =
serviceLocator.findService("com.liferay.portal.kernel.module.configuration.ConfigurationProvider")>
${configurationProvider.getGroupConfiguration("com.axiell.arena.liferay.modules.common_services.configuration.CommonServicesGroupConfiguration.Class
, groupId1)}
anyone can help me ?
Have you properly scoped the configuration (for example, do you have a ConfigurationBeanDeclaration class?)?
Also, in a FreeMarker template I think oyu might just want to use the ConfigurationProviderUtil utility class, not the ConfigurationProvider.