0
votes

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

1 Answers

0
votes

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