com.liferay.portlet.dynamicdatamapping.dependencies.readonly.ddm-link-to-page.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<#include "../init.ftl">
<#if !disabled>
<@aui.input name=namespacedFieldName type="hidden" value=fieldValue />
<#if (fieldRawValue?? && fieldRawValue != "")>
<#assign fieldLayoutJSONObject = jsonFactoryUtil.createJSONObject(fieldRawValue)>
<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")>
<#if (fieldLayoutJSONObject.getLong("groupId") > 0)>
<#assign fieldLayoutGroupId = fieldLayoutJSONObject.getLong("groupId")>
<#else>
<#assign fieldLayoutGroupId = scopeGroupId>
<#assign fieldLayout = layoutLocalService.fetchLayout(fieldLayoutGroupId, fieldLayoutJSONObject.getBoolean("privateLayout"), fieldLayoutJSONObject.getLong("layoutId"))!"">
<#if (fieldLayout?? && fieldLayout != "")>
${escape(fieldLayout.getName(requestedLocale))}
${fieldStructure.children}