留言板

close popup when editing web content in asset publisher

juan meza,修改在7 年前。

close popup when editing web content in asset publisher

Regular Member 帖子: 228 加入日期: 14-1-6 最近的帖子
Hi, I have liferay 6.2GA4

I have an asset publisher with a custom template, to view a list of my web content...
I created the edit URL like this:

#set ($portletName = $themeDisplay.getPortletDisplay().getPortletName())
#set ($plid = $getterUtil.getLong($themeDisplay.getPlid()))
#set ($portletURL = $portletURLFactory.create($renderRequest, $portletName, $plid, "RENDER_PHASE"))
#set ($windowState = $windowStateFactory.getWindowState("POP_UP"))
#set ($assetRenderer = $curEntry.getAssetRenderer())
#set ($editURL = $assetRenderer.getURLEdit($renderRequest,$renderResponse, $windowState, $portletURL))
							
<a href="javascript:Liferay.Util.openWindow({id: '_$themeDisplay.getPortletDisplay().getId()_editAsset', title: 'Edit $curEntry.getTitle($locale)', uri:'$editURL'});" class="admins">Edit Record </a>


it works fine, i can edit my web content...

the problem is that when i finish editing, it does a redirect to my page but inside the popup... it doesnt close the popup automatically like it should... what parameter am i missing? how can i achieve this?

thanks
abdul hakim muzani,修改在7 年前。

RE: close popup when editing web content in asset publisher

New Member 帖子: 9 加入日期: 17-2-1 最近的帖子
Hey, so i have the same problem. Have you found any solution to this?
juan meza,修改在7 年前。

RE: close popup when editing web content in asset publisher

Regular Member 帖子: 228 加入日期: 14-1-6 最近的帖子
hey, no i did not.. sorry... if you find out how to do it pls share emoticon
abdul hakim muzani,修改在7 年前。

RE: close popup when editing web content in asset publisher (答复)

New Member 帖子: 9 加入日期: 17-2-1 最近的帖子
I opened another thread for this, and answered it myself. There is nothing more painful than asking a question. Then answering the question yourself. emoticon

Answer