How to open new dialog on liferay-search container -
How to open new dialog on liferay-search container -
i want open new dialog on liferay search container..how possible. create search container
<liferay-ui:search-container delta="37"> <liferay-ui:search-container-results results="<%=clip%>" total="<%=clip.size()%>"> </liferay-ui:search-container-results> <liferay-ui:search-container-row classname="com.clipping" keyproperty="clippingid" modelvar="item"> <liferay-ui:search-container-column-text name="type" value="<%=item.gettype()%>" /> <liferay-ui:search-container-column-text name="paper" value="<%=item.getnewspaper()%>" /> <liferay-ui:search-container-column-text name="category" value="<%=item.getcategory()%>" /> <liferay-ui:search-container-column-text name="sub category" value="<%=item.getsubcategory()%>" /> <liferay-ui:search-container-column-jsp path="/html/view2.jsp" name="view"/> </liferay-ui:search-container-row> <liferay-ui:search-iterator /> </liferay-ui:search-container>
here created 1 search container includes few columns , 1 column view link. when click on view link @ time want open new dialog. how possible??please help me
thanks
try this, can't more accurate because question generic. assume want show portlet in dialog.
in view2.jsp:
<%@ include file="/init.jsp" %> //if using standard pattern portlet development, otherwise import need, sure import taglibs utilize below <liferay-portlet:renderurl var="popupurl" portletname="yourportletid" windowstate="<%=liferaywindowstate.pop_up.tostring() %>"> <liferay-portlet:param name="param1" value="value1" /> </liferay-portlet:renderurl> <% popupurl="javascript:showpopup('"+popupurl+"','my title')"; %> <button onclick="<%=popupurl %>">button</button> <aui:script> function showpopup(url, title) { liferay.util.openwindow( { dialog: { cache: false, width:500, centered: true, resizable: false, title: title, modal: true }, id: 'myid', uri: url } ); } </aui:script>
there many thing know dialog, advice read more it, illustration open dialog in easy way.
dialog liferay liferay-aui
Comments
Post a Comment