Personalizing Collections for Liferay 7.2 and Earlier Versions
Personalizing collections tailors content for specific user segments, enhancing user experiences and targeting content effectively. In Liferay 7.2 and earlier, use segments to create personalized variations of content sets. These variations display relevant content to specific segments while maintaining a default view for all other users.
Content Set Personalization
For this example, create a content set to be the default displayed on the Home page. Then, modify it to create a personalized variation containing technical articles for members of the American Engineers segment.
If you’re not familiar with content sets, see the Creating Content Sets article before you get started here.
Creating and Setting the Default Content Set
First create the default content set and configure it on the Home page using the asset publisher.
-
Open the Global Menu () and navigate to Content and Data → Content Sets.
-
Click Add () and choose Manual Selection.
-
Name it Home Page Content.
-
For the new content set, click Select next to Asset Entries and select Basic Web Content.
-
On the Select Basic Web Content page, select the content you want to add and click Add.
-
Navigate to the Home page and add an Asset Publisher widget to the page.
-
Open Configuration for the Asset Publisher.
-
Under Asset Selection select Content Set.
-
Under Select Content Set click Select, choose Home Page Content, and click Save.
Now the content set you configured appears in the Asset Publisher widget on the home page. Next configure the content set for personalization.
Personalizing the Content Set
Now create the content set for engineers and configure its display.
-
Go back to the content set from Site Administration.
-
Click New Personalized Variation and select the American Engineers segment
-
Click Select next to Asset Entries and select Basic Web Content.
-
Select articles appropriate to an engineering audience and click Add.
Now anytime a member of the American Engineers segment views this content set being displayed, they see the personalized version and not the default. Test this now, using the Simulator.