Documentation

Selecting Assets in the Asset Publisher Widget

You can configure the Asset Publisher Widget to select Assets dynamically based on specific criteria, or manually, specifying exactly what assets to display. You can also display Assets from Collections.

Note

On Liferay 7.2 and below, Collections are referred to as Content Sets.

To select Assets to publish in the Asset Publisher widget,

  1. Click the Actions menu (Click on the Options button at the top-right corner of the widget for configuration.) at the top-right corner of the Asset Publisher Widget.

    Click the Actions menu to access the Asset Publisher Configuration options.

  2. Select Configuration to display the Configuration dialog.

    Under Asset Selection, select how you want to filter your Assets. For a description of these options, see Asset Selection Options.

    The configuration window has different Asset Selection options under the Setup tab.

  3. Optionally, click Create a collection from this configuration to save the configuration as a new Collection. This option is available for the Dynamic and Manual Asset selection options.

  4. Once you’ve selected your Assets and configured the widget, click Save.

Asset Selection Options

You can use different options to select the Assets in the Asset Publisher dialog’s Asset Selection section:

Dynamic

Using the Dynamic asset selection, you can include Assets in the Asset Publisher Widget automatically, based on different criteria.

  1. In the Source section, use the Asset Type drop-down menu to select your Assets. Select a specific Asset Type or Select More Than One to choose from different types.

  2. In the Scope section, choose to display assets from an individual Site or other Sites.

  3. In the Filter section, define the Rules for the Assets in your Asset Publisher Widget. You can define rules based on Categories, Tags, or Keywords.

  4. Include a Custom User Attribute if you have defined one.

  5. In the Ordering section, choose the presentation order of Assets in the Asset Publisher Widget.

Define the options for the Dynamic Asset collection, including Source, Scope, Filter, Custom User Attribute, and Ordering.

Manual

Here you can set parameters and manually filter specific Assets:

  1. In the Scope section, choose to display assets from an individual Site or other Sites.

  2. In the Asset Entries section, use the Select button to filter for specific types of assets.

  3. For the type of asset you select, check the assets you want to include.

  4. Click Add.

Here is an example of filtering for Basic Web Content and manually selecting items

Note

A new Collection is created based on your selection.

Collection

Select this option to choose from your previously saved Collections. To learn more about Collections, read About Collections and Collection Pages.

  1. Under the Select Collection section, click Select.

  2. Choose one of your exiting Collections.

  3. Click Save.

Click Select and choose from your saved Collections.

Collection Provider

This is a new feature in Liferay DXP 7.3 that allows developers to create specific collections with more advanced criteria. To learn more, read the information about Creating an Information List Provider in the Info Framework developer documentation.