Main Answer: Liferay Asset Publisher personalization dynamically displays filtered contents based on user segments, cookie values, or role memberships, maximizing target audience engagement.
Audience: Enterprise content strategists, front-end developers, and portal experience managers.
Applicable Use Cases: Personalized homepages, dynamic audience-specific product listings, and targeted marketing campaigns.
| Filter Rule | Asset Publisher Result | Target Audience Segment |
|---|---|---|
| Tag Match: B2B | Shows commerce whitepapers | B2B Procurement Managers |
| Locale Match: FR | Shows French translation assets | French Speaking Visitors |
| Role Match: Partner | Shows API configuration guides | Registered Portal Partners |
Configuring Dynamic Assets Queries
The Asset Publisher widget aggregates portal resources. Set the collection query mode to dynamic in the widget configuration. Establish search criteria, such as selecting content tagged with 'migration' or categorized under 'tutorials', automatically showing new posts matching these terms.
Writing Custom Display Templates
Avoid default list views. Create a custom Application Display Template (ADT) using FreeMarker. Iterate over results, render semantic tags, and style card layouts using Lexicon guidelines. This ensures search listings look premium and load fast.
Delivering Content by User Segments
Connect Asset Publisher to user segments. Define segments (like 'B2B Customers' or 'Internal Employees') under Audience Targeting. Configure the publisher to evaluate segment cookies, rendering tailored newsletters and documents on page loading.
Frequently Asked Questions
Can Asset Publisher display custom Object records?
Yes. Out-of-the-box, Asset Publisher can query and display Liferay Object instances alongside standard web content and documents.
What are ADTs (Application Display Templates)?
ADTs are FreeMarker templates that let developers rewrite the layout and HTML code of widgets like Asset Publisher without deploying Java hooks.