How to add a custom section to the User Edit Screen in Liferay? -
i want customize user-edit page in liferay 6.2.
first of wanted add new section bar on right of user edit screen (http://i.imgur.com/dshv5cj.png). have realized properties
users.form.add.main=customportlet
when click on new created section opens blank page. how can add content here (the data stored on separate tables)?
i know can create custom fields through configurations realize on way.
what looking hook.
you use file web-inf/liferay-hook.xml deployment descriptor:
<!doctype hook public "-//liferay//dtd hook 6.2.0//en" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd"> <hook> <portal-properties>portal.properties</portal-properties> <language-properties>language.properties</language-properties> <custom-jsp-dir>/web-inf/custom_jsps</custom-jsp-dir> </hook> and define additional section in file web-inf/classes/portal.properties:
# users.form.add.main creation of user # guess mean user edit screen: users.form.update.main=my-section implement section jsp file in web-inf/custom_jsps/html/portlet/users_admin/user/my-section.jsp:
<%@include file="/html/portlet/users_admin/init.jsp" %> <h3><liferay-ui:message key="my-section" /></h3> <%-- implement section --%> and label section in web-inf/classes/language.properties:
my-section = section thats it.
Comments
Post a Comment