Collection Filter in DAM Connect Page in Sitecore Content Hub

Sitecore Content Hub offers functionality to connect the DAM with the Sitecore Experience Platform or Cloud. Authors can browse DAM assets when selecting media items in the Sitecore Content Tree item image field.

When an author selects "Browse Sitecore DAM," there are options available to choose from: "Approved Assets" and "Pending for Approval." According to business requirements, an additional option for "Collection" is needed, allowing authors to select assets directly from a Collection.

collection-filter-ch-1

Currently, the Sitecore Content Hub DAM connect page offers options for Pending Approval and Approved assets. To address the requirement for a Collection option, an additional tab for Collections will be added to the DAM Connect page. This change will allow users to select a collection and choose assets directly from it, instead of using only the asset search filter. In this blog post, I will outline the steps required to add the Collection tab to the Sitecore Content DAM Connect page to provide users with the ability to choose assets from a collection during selection.

Step 1: Navigate to Manage > Pages > Sitecore DAM connect, and create two new pages:

  1. HD SCCH collections
    Page type: Blank page
    Master layout: Sitecore plugin
    Appears in menu: true
    Inherits security: true
  2. HD SCCH collection detail
    Page type: Detail page
    Definition: Asset (M.Asset)
    Master layout: Sitecore plugin
    Inherits security: true
collection-filter-ch-2

Step 2: Go to /en-us/admin/entitymgmt/entity/{pageId} of the SCCH collections page. Modify the data from

Step 3: Navigate back to Manage > Pages > Sitecore DAM connect. Click on the SCCH collection detail page, on the Layout tab, and create a Search component.

Step 4: Add the following filters (Additional, as well as per your requirement):

  • System: Asset (M.Asset)
  • Fixed: Relation (Role: Parent) - CollectionToAsset

Step 5: On the Output tab > Grid > Main click area > add "Select public link" operation and configure the operation settings:

  • Alternative text: Title (for example)
  • Integration: Sitecore

Step 6: Save the changes.

Step 7: Back to Manage > Pages > Sitecore DAM connect. Click on the SCCH collections page, on the Layout tab, and create a Search component.

Step 8: Add the following filters:

  • System: Collection (M.Collection)

Step 9: On the Output tab > Grid > Main click area > add "View detail page" operation and configure the operation settings:

  • Link: SCCH collection detail

    Step 10: Save the changes.

    You should then be able to use the Collections page, view the assets linked to the collection, and select the public links of the assets.

    collection-filter-ch-3

    Happy Sitecoreing ðŸ˜Š

    Comments

    Popular posts from this blog

    Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

    Import CSV Data in Sitecore Using PowerShell: Part-3

    Sitecore Identity Server: Sorry, There Was an Error