Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Showing Banner for Assets which are going to expired

Avatar

Level 1

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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.

 

Avatar

Community Advisor

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/dr...