Use below tag if you want to provide change and delete user portrait functionality from your custom portlet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<portlet:renderurl var="editUserPortraitURL" windowstate="<%= LiferayWindowState.POP_UP.toString() %>"> | |
<portlet:param name="jspPage" value="/users_admin/edit_user_portrait"></portlet:param> | |
<portlet:param name="redirect" value="<%= currentURL %>"></portlet:param> | |
<portlet:param name="screenName" value="<%= String.valueOf(userObject.getScreenName()) %>"></portlet:param> | |
<portlet:param name="portrait_id" value="<%= String.valueOf(userObject.getPortraitId()) %>"></portlet:param> | |
</portlet:renderurl> | |
<liferay-ui:logo-selector defaultlogourl="<%= UserConstants.getPortraitURL(themeDisplay.getPathImage(), userObject.isMale(), 0) %>" | |
editlogourl="<%= editUserPortraitURL %>" | |
imageId="<%=userobject.getportraitid() %>" | |
logoDisplaySelector=".user-logo" | |
showBackground="<%= false %>" > | |
</liferay-ui:logo-selector> |
0 comments:
Post a Comment