David Kubitza 9 Years Ago aui-modal works almost like aui-dialog and aui-io-request like aui-io. Please sign in to reply. Reply as... Cancel
Nikos Samaras 8 Years Ago In case that you would like to use a new portlet (myPortlet) instead of Liferay’s portlet:<liferay-portlet:renderURL portletName="myportlet_WAR_myportlet" var="myPortletURL" windowState="<%=LiferayWindowState.POP_UP.toString()%>" portletMode="VIEW"> </liferay-portlet:renderURL><div> <aui:button name="myportlet -popup" id="myportlet-popup" value="Open document for general user"> </aui:button></div><aui:script> AUI().use('aui-base','liferay-util-window','aui-io-plugin-deprecated',function(A){ A.one('#<portlet:namespace/>login-popup').on('click', function(event){ var my_popup= Liferay.Util.Window.getWindow( { dialog: { centered: true, constrain2view: true, resizable: true } }).plug(A.Plugin.DialogIframe, { autoLoad: true, iframeCssClass: 'dialog-iframe', uri:'<%= myPortletURL.toString()%>' }).render(); my_popup.show(); login_popup.titleNode.html("Windows title"); }); }); Please sign in to reply. Reply as... Cancel
Nikos Samaras 8 Years Ago I addition that line should be in liferay-portlet.xml of myPortlet.<add-default-resource>true</add-default-resource> Please sign in to reply. Reply as... Cancel