Creating Collections

Note

This information applies to Liferay DXP 7.3+. For previous Liferay DXP versions, see Creating Collections for Liferay 7.2 and Earlier Versions.

You can create Manual or Dynamic Collections. For information about the different types of collections, see Collections and Collection Pages.

Creating a Manual Collection

  1. Open the Site Menu (Site Menu), expand Site Builder, and go to Collections.

  2. Click New and select Manual Collection.

  3. Add a Title for your manual collection and click Save.

  4. In the Item Type drop-down menu, select the item type you want to include in the collection.

    • If you want to include only one item type

      1. Select the type under Single Item Type.

      2. Optionally, if your Item Type includes a subtype, select this in the Item Subtype drop-down menu.

      3. Click Save.

      Configure the content type and subtype for the m,manual collection

    • If you want to include more than one item type

      1. Select Select More Than One under Multiple Item Types.

      2. In the dual list box, add or remove the item types you want to include in your collection.

      Select the different item types for the manual collection

  5. Click Save.

  6. Click Select next to Collection Items and select one of your item types.

    Select the items you want to include in the manual collection

  7. In the selection dialog, check the items you want to include.

  8. Click Add.

  9. If your manual collection includes more than one item type, repeat steps 6 to 8 for the other types.

Note

Documents and media folders and web content folders can be added to a collection. However, the content is not displayed when the folder is published on a collections page or in an Asset Publisher widget. Even if these assets are added to a collection, they can only be viewed separately.

Creating a Dynamic Collection

  1. Open the Site Menu (Site Menu), expand Site Builder, and go to Collections.

  2. Click New and select Dynamic Collection.

  3. Add a Title for your dynamic collection and click Save.

  4. In the Item Type drop-down menu, select the item type you want to include in the collection.

    • If you want to include only one item type,

      1. Select the type under Single Item Type.

      2. Optionally, if your Item Type includes a subtype, select this in the Item Subtype drop-down menu.

      3. To filter you Item Subtype by a specific field, enable the Filter by Field switch, click Select, choose the field, and click Apply.

      4. Click Save.

    • If you want to include more than one item type,

      1. Select Select Types under Multiple Item Types

      2. In the dual list box, add or remove the item types you want to include in your collection.

  5. Configure the criteria for your dynamic collection, based on Scope, Filter, Content Recommendation, or Ordering.

    Scope: Define the source of items in your dynamic collection. By default, the source is the current site.

    Filter: Configure the rules for the items in the dynamic collection. For example, you may want to include only items with the “promotion” tag.

    Filter your dynamic collection by adding one or more rules.

    Tip

    You can add multiple rules to your filter by clicking the Add button. The final content in the dynamic collection is the result of adding all the rules.

    Ordering: Items in the collection appear using the order criteria you define here.

  6. Click Save.

Creating a Collection from an Asset Publisher

You can create a new collection from an Asset Publisher widget. This is useful when you have an Asset Publisher customization that you want to use as a collection in other pages.

  1. Open the Site Menu (Site Menu), expand Site Builder, and go to Pages.

  2. Click Actions (Add) for the page that contains the Asset Publisher and select Edit.

  3. Hover over the Asset Publisher, click Options (Options) in the widget’s menu, and select Configuration.

  4. In the Asset Publisher - Configuration dialog, click the Setup tab → Asset Selection.

  5. Scroll down and click Create a Collection from this Configuration.

    Click the Create a collection from this configuration to transform the Asset Publisher widget into a new Collection.

  6. Enter the Title for your Collection and click Save.

  7. Close the Asset Publisher - Configuration dialog.

  8. Find your new collection in Site MenuSite BuilderCollections.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy