Widget · AMP
Sizing and Personalizing Asset Publisher Displays
To personalize layouts, deploy Liferay's Asset Publisher. Choose dynamic source selection, set search rules targeting specific tags and categories, map custom display templates, and enable segment criteria to personalize feeds.
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.
Read the full article, with table of contents, comparison table, and author bio →