Showing Banner for Assets which are going to expired | Community
Skip to main content
August 27, 2024
Solved

Showing Banner for Assets which are going to expired

  • August 27, 2024
  • 3 replies
  • 792 views

Hi All,

 

I have a requirement to show a banner for the assets that are going to expire in the next 10 days.

Does anyone have any insights on it? Please provide your valuable information.

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pradeep_Kumar_Srivastav

Hi @kaibalyaje ,

  • Identify Expiring Assets:

    • Utilize AEM's QueryBuilder to retrieve a list of assets with expiration dates.
    • Filter the assets based on their expiration date, ensuring it falls within the next 10 days.
  • Create a Custom Component:

    • Develop a custom component to display the banner.
  • Implement Banner Logic:

    • Within the component's JSP or React/Angular template, implement logic to determine if a banner should be displayed for each asset.
    • Consider factors like the number of days remaining until expiration.

 

3 replies

Pradeep_Kumar_Srivastav
Community Advisor
Pradeep_Kumar_SrivastavCommunity AdvisorAccepted solution
Community Advisor
August 27, 2024

Hi @kaibalyaje ,

  • Identify Expiring Assets:

    • Utilize AEM's QueryBuilder to retrieve a list of assets with expiration dates.
    • Filter the assets based on their expiration date, ensuring it falls within the next 10 days.
  • Create a Custom Component:

    • Develop a custom component to display the banner.
  • Implement Banner Logic:

    • Within the component's JSP or React/Angular template, implement logic to determine if a banner should be displayed for each asset.
    • Consider factors like the number of days remaining until expiration.

 

h_kataria
Community Advisor
Community Advisor
August 27, 2024

You can also check Adobe CQ DAM Expiry Notification workflow if it fullfills your requirements, it will not show the banner but can send emails to the asset creator before the asset expires. 
More details : https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/manage/drm#search-expired-assets 

arunpatidar
Community Advisor
Community Advisor
August 27, 2024