Customization is at the core of Liferay, as it offers component classes for enhancing its functionality.
Indeed, you read correctly—from the control panel, you can make custom fields for custom entities. But hold on, it's not OOTB. For this, you must write a single component class.
Here you go.
In your module, create a component class and include the component declaration listed below.
|
Ensure that the class "BaseCustomAttributesDisplay" is extended by yours.
public class ObjectDefinitionCustomAttributesDisplay extends BaseCustomAttributesDisplay
|
Include the following methods in the class.
|
This is how your class will now appear.
|
Deploy this portlet now, then use the control panel to examine the custom field area. There, the object definition will be shown.