Introduction
Personalizing Collections in Liferay lets you show different items from the same collection to different audiences—without changing the collection itself. You attach “personalized variations” to user segments, so collection displays (Collection Pages, Collection Display Fragment, Asset Publisher) automatically filter what each visitor sees. Typical uses include member-only offers, regional catalogs, or role-based announcements.
Prerequisites
Liferay DXP/Community
Environment Requirements :
Java
Liferay
Create Segment and add to collections :
To personalize the collections in Liferay, you should first create a segment. If you do not know how to create a segment, Click Here to see.
I have created two segments.
To use segment with collections, go to the site menu ->site builder -> collections
Click on the new button and select dynamic collections or you can select an existing one.
Click on add personalized variation and select the segment.
I have created two variations of segments.
After deploying collections on the page.
For Firefox users.
For users who contain Liferay.com in their email address.
Conclusion
In summary, personalizing Collections through Segments separates content curation from how it is presented. This approach lets a single Collection entity dynamically resolve and provide different content sets based on user context, such as their role or behavior. The Collections Display fragment serves as the rendering endpoint. It uses the segmentation logic to deliver a focused experience with a single, manageable component. This reduces the need for extra assets or code.

