Displaying Assets Using the Asset Publisher Widget
As you create web content, remember that pieces of content are assets, just like message board entries and blog posts. The most common type of asset is Web Content. The Asset Publisher widget supports these asset types by default:
- Blogs Entry
- Bookmarks Entry
- Bookmarks Folder
- Calendar Event
- Basic Document
- Google Drive Shortcut
- Documents Folder
- Dynamic Data Lists Record
- Knowledge Base Article
- Message Boards Message
- Basic Web Content
- Web Content Folder
- Wiki Page
Starting with Liferay DXP 7.2, developers can use the Info Framework to display Assets from Information Lists.
The easiest way to configure an Asset Publisher to display the desired assets is to use a Collection that suits your needs. Whether your Collection is assigned assets manually or dynamically, the Asset Publisher widget automatically loads assets in the order the Collection defines. In Liferay DXP 7.4 U10+ or GA14, Asset Publishers use the Collection configuration by default.
You can also configure the Asset Publisher widget’s Manual or Dynamic configurations to determine the displayed assets without a Collection. Manual selection gives you control over what assets are displayed, but maintaining the list can be tedious if you find yourself updating the list on a regular basis. In this case, it’s more convenient to use the Asset Publisher widget to select content dynamically.
The Asset Publisher widget displays assets. It has many configuration options that you can use to adapt the way it displays them. By default, the Asset Publisher displays abstracts (previews) of recently published assets with links to their full views. You can configure the Asset Publisher to display a table of assets, a list of asset titles, or the full content of assets. You can also configure it to display specific assets, and choose how many items to display in a list. You might use Asset Publisher to display chosen content types, recent content, or content by tags and categories.
Publishing Mixed Content
Since the Asset Publisher widget publishes assets, it excels at publishing mixed content types like images, documents, blogs, and of course, web content. This helps create a more dynamic website. you can place user-created wiki entries, blog posts, or message board messages in context with your web content.