Skip to content

Instantly share code, notes, and snippets.

@yasuflatland-lf
Last active April 26, 2019 07:47
Show Gist options
  • Select an option

  • Save yasuflatland-lf/be02f886ec51de2ce0cec7f08124287c to your computer and use it in GitHub Desktop.

Select an option

Save yasuflatland-lf/be02f886ec51de2ce0cec7f08124287c to your computer and use it in GitHub Desktop.
WCM Edit page in a pop up for Liferay 7.1
<#assign
portletName = themeDisplay.getPortletDisplay().getPortletName()
plid = getterUtil.getLong(themeDisplay.getPlid())
portletURL = portletURLFactory.create(renderRequest, portletName, plid, "RENDER_PHASE")
windowState = windowStateFactory.getWindowState("POP_UP")
assetRenderer = entry.getAssetRenderer()
editURL = assetRenderer.getURLEdit(renderRequest,renderResponse, windowState, portletURL)
VOID = editURL.setParameter("returnToFullPageURL", currentPortletURL)
>
<@liferay_ui["icon"] method="get" url="${editURL}" icon="pencil" useDialog=true />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment