Users and organization creation form

醉酒当歌 提交于 2019-12-25 04:19:16

问题


I have added portal directory inside a public page contains users and organization

Q1>> I need to add portlet allow users depending on their roles to add edit organization and users depending on their roles outside the control panel "inside my new portlet in public page"?

OR

Inside portal directory portlet allow users depending on their roles to add edit organization and roles outside the control panel "inside my new portlet"?

Q2>> How to make custom fields required fields?

I'm new to liferay.

How to do that ?


回答1:


Approach 1 (not recommended since usage of EXT is discouraged by Liferay + you don't have much experience with Liferay)

  1. Create an EXT plugin to Modify Liferay's liferay-display.xml, and move your portlet's from list of Hidden category portlets to the category of your choice
  2. Create a hook plugin to change the UI of this portlet to make your custom fields mandatory

Approach 2 (recommended for its cleanliness & maintainability):

Create a custom portlet to achieve your requirements. Here's what you'll need to create:

  1. JSP to take necessary fields (Basic fields + your Custom Fields) from UI
  2. Portlet class that uses below classes
  3. Organization*ServiceUtil
  4. Expando*ServiceUtil
  5. Organization's getExpandoBridge() to populate your custom fields


来源:https://stackoverflow.com/questions/22145116/users-and-organization-creation-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!