我想将Portlet嵌入Liferay 6.2的Asset Publisher中。 我是这样做的:
<#assign siteMapPortletId = "85" />
<#assign PortletPreferencesFactoryUtil = staticUtil["com.liferay.portlet.PortletPreferencesFactoryUtil"] />
<#assign portletSetupFooter = PortletPreferencesFactoryUtil.getLayoutPortletSetup(layout, siteMapPortletId) />
<#if portletSetupFooter.getValue("portletSetupShowBorders", "") != "false">
<#assign myPreferences = portletSetupFooter.setValue("portletSetupShowBorders", "false") />
</#if>
<#assign myPreferences = portletSetupFooter.setValue("rootLayoutUuid", getPageID("Pages")) />
<#assign myPreferences = portletSetupFooter.setValue("displayStyle", getTemplateID("Sitemap")) />
<#assign myPreferences = portletSetupFooter.store() />
<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] />
<@liferay_portlet["runtime"]
defaultPreferences=myPreferences
portletName=siteMapPortletId
/>
但我收到此错误:
找不到liferay_portlet [“运行时”]。