Configuring Object Definitions
While defining the structure and relationships of your Liferay Objects is essential, configuring their behavior and functionality is equally important. From determining data scope to enabling draft mode, configuring your object ensures it aligns with your requirements. You can configure object definitions in the Objects UI.
Object Data
In the Object Data section, you can manage the object's name and labels. The labels identify the object in the Liferay UI and can be localized at any time, while the name identifies the object in the Liferay backend and cannot be localized. You can update the labels at any time, though you cannot change the object’s name after publishing.
This section also displays the object's database table name, which is managed by Liferay and cannot be changed. When you publish an object, Liferay creates this table, which includes the object’s fields and relationships defined at the time of publishing. Fields and relationships added after publishing are added to a side table (i.e., [Initial_Table_Name]_x).
After publishing, you can also activate or deactivate the object at any time. While active, users can interact with the object and its entries. When deactivated, the object becomes inaccessible, preventing any interaction or usage. Note that deactivating an object definition does not remove its entries; only deleting the object removes its entries.
Entry Display
In the Entry Display section, you can set the object’s Entry Title Field, which determines the object field used to identify its entries when using relationships. This applies only to the object’s default view and layout and does not affect custom UIs created using fragments or client extensions. By default, this configuration uses the entry’s ERC. However, it's recommended to select a custom field with unique values that provide meaningful context for users.
Scope
This section includes two settings: Scope and Panel Link. Scope determines how the object’s data is stored; whether it is stored at the instance level or for individual sites. Two options are available:
-
Company: Object entries are accessible across the entire Liferay instance, including all sites.
-
Site: Object entries are restricted to the specific site where they're created.
Panel Link determines where the object appears in the Liferay UI. For company-scoped objects, you can select a tab and category in the Global Menu (), while for site-scoped objects, you can select a section in the Site Menu (
). This provides access to the object’s default application page. This UI has limited customization and styling options, so you should reserve it for administrative purposes and avoid using it for end-users.
After publishing, the object’s scope cannot be changed, so it’s crucial to ensure you understand how you plan to use the object and select the appropriate scope before publishing. When selecting a scope, the deciding factor is usually whether the object’s entries must be shared across multiple sites. If so, you must use the Company scope; otherwise, you can use the Site scope.
Clarity's solutions illustrate this distinction. The distributor solution is designed to collect inquiries regardless of site, so its objects should use the Company scope. Conversely, the ticketing solution could use the Site scope, since users from different sites may need to open different types of tickets, and those tickets may require site-specific users to resolve them.
Account Restriction
In some scenarios, you may need to restrict access to object entries by account. Liferay objects support this capability, enabling account users to only access entries scoped to their account while preserving full visibility for organization users across all accounts. To do this, you’ll need to enable account restriction, which requires a relationship with the Account system object. You’ll learn more about this feature and how to set it up in Module 6.
For Clarity’s ticketing solution, account restriction offers a practical benefit: it allows client accounts to view and manage their tickets without accessing those belonging to other clients. Simultaneously, Clarity's support team retains full visibility across all tickets, regardless of the associated account.
SEO
In the SEO section, you can configure how Liferay generates friendly URLs for object entries. By default, every published entry receives a URL built from a separator and the entry title field, following the pattern server-address/[separator]/[entry title field].
Two settings control how this URL is constructed:
- Object Entry URL Separator: The path segment that appears between the site path and the entry title. The default value is
c_objectname. You can override this to align with your site's URL conventions. - Allow Overriding an Entry's Friendly URL: When enabled, entry creators can manually set the friendly URL when creating or editing an entry. This is also required for providing locale-specific friendly URLs.
For more details on configuring object entry URLs, see Displaying Object Entries.
Additional Configurations
The Configuration and Translations sections includes a range of configuration options to customize the object’s behavior and Liferay integrations. These are the available options:
-
Show Widget in Page Builder: Exposes a widget for adding the object to site pages. This widget uses the object’s default interface. Enable it when you have administrative users who need access to the object but shouldn’t have access to the Global Menu or Site Menu. For this reason, Clarity wants to enable it for their solutions. You’ll explore options for object interfaces in Module 6.
-
Enable Categorization: Enables users to apply categories to object entries, which can improve filtering and rendering lists of object entries. To take advantage of these benefits, Clarity wants to enable this feature for Distributor Applications and Tickets.
-
Enable Comments in Page Builder: Enables users to add page comments to object entry display pages, which can improve communication and collaboration. Clarity wants to enable this for Tickets so customers and support team members can communicate asynchronously.
-
Enable Indexed Search: Enables indexing and search for object entries. Use this setting when the object’s entries are valid search results. This feature can help Clarity’s teams find what they need, specifically for Distributor Applications and Tickets.
-
Enable Entry History in Audit Framework: Uses Liferay’s audit framework to track events for custom object definitions and their entries (e.g., when entries are created, updated, or deleted). Only enable this option if necessary for your solution. For Clarity’s solution, auditing isn't necessary.
-
Allow Users to Save Entries as Draft: Enables draft mode for object entries. When enabled, users can save entries as drafts without triggering validations, workflow processes, or actions usually triggered by entry creation or update. Instead, they’re triggered when the entry is approved. Also, draft mode is necessary for multi-page forms, which Clarity plans to use for their Distributor Applications object.
-
Allow Users to Schedule a Display, Expiration, and Review Date for Entries: Enables fields for managing each entry’s publication lifecycle.
As of 2026.Q1, Liferay supports versioning for object entries. With versioning enabled, edits to an entry create a new version while the current version remains published, which is especially useful when entries flow through an approval workflow. To enable and configure this feature for an object, see Managing Object Entry Versions.
Conclusion
Understanding object configuration options is crucial to ensuring your objects align with your requirements. Next, you’ll learn about how you can extend system objects when building custom solutions.
--
Capabilities
Product
Education
Knowledge Base
Contact Us