Layouts define how fields and relationships appear when creating and editing object entries. Each layout can include multiple tabs containing different elements that appear during or after entry creation. When designing a layout, there are two types of tabs:
Relationship tabs can only display relationship tables from one-to-many or many-to-many relationships.
While designing layouts, you must first add a field tab, then you can add other tabs. Only the first tab appears during object entry creation. Other tabs appear when editing the object entry. Once you’ve finished designing your layout, mark it as default to use it.
Important
The first tab must be a field tab. This tab must include all mandatory object fields. Also, you can only add a relationship tab after the layout has a field tab. Relationship tabs cannot be the first tab in an object layout.
Enter a Label, select the Fields type, and click Save.
The label determines the tab’s display name in the Liferay UI.
Click Add Block, enter a Label, and click Save.
This creates a subsection for adding fields. The label determines the section’s display name in the Liferay UI.
Repeat this step to add multiple blocks to the same tab.
Click Add Field for the desired block, select an object field, determine the field’s size (i.e., one, two, or three columns), and click Save.
Repeat this step to add more fields to the block.
Use the toggle switch to make a block collapsible.
After adding the desired tabs, save your changes to the layout.
After adding a field tab, you can add categorization tools to it so end users can apply tags and categories to object entries. See Adding Categorization to Field Tabs for more information.
Edit the desired layout, go to the Layout tab, and click Add Tab.
Enter a Label, select the Relationships type, and select the relationship table you want to display in the tab.
The label determines the tab’s display name in the Liferay UI.
Click Save.
After adding the desired tabs, save your changes to the layout.
Important
If the object has a many-to-many relationship with itself, you can add two relationship tabs to its layout. Each tab corresponds to one side of the relationship. For example, consider a ticket object that relates multiple tickets to one another. You can define two relationship tabs for keeping track of tickets and their dependencies. One tab would list all tickets that the current ticket depends on, while the other tab would list all tickets that depend on the current ticket. See Defining Object Relationships for more information.
Once you’ve designed your layout, you can set it as the object’s default layout. This ensures it is used for creating and editing the object’s entries. Otherwise, the object uses the autogenerated layout.
Follow these steps:
Select the desired layout.
In the Basic Details tab, check Mark as Default.
Important
The default layout is always used when creating or editing entries. All others remain inactive. To use a different layout, mark it as the default.
Click Save.
The layout is now used when creating and editing the object’s entries.
This website uses cookies and similar tools, some of which are provided by third parties (together “tools”). These tools enable us and the third parties to access and record certain user-related and activity data and to track your interactions with this website. These tools and the informationcollected are used to operate and secure this website, enhance performance, enable certain website features and functionality, analyze and improve website performance, and personalize user experience.
If you click “Accept All”, you allow the deployment of all these tools and collection of the information by us and the third parties for all these purposes.
If you click “Decline All” your IP address and other information may still be collected but only by tools (including third party tools) that are necessary to operate, secure and enable default website features and functionalities. Review and change your preferences by clicking the “Configurations” at any time.
Visit our Privacy Policy