In AEM 6.3 How Long Does a New Asset Card Shows "New" Label

Avatar

Avatar

bobbym33667819

Avatar

bobbym33667819

bobbym33667819

24-05-2019

Hello,

In AEM 6.3 Assets we use the upload asset workflow to send an email to asset taggers and wait for them to "Complete" it from their Inbox after tagging the asset. Before they've done that the asset card would have a blue label stating "Processing" and after if not too long time had passed the label will change to "New". Our question is for how long will that New label be visible. Also, there seems to be no metadata property stating the asset is New so is the value taken into consideration jcr:created of the asset node?

Check the screenshot for reference.

Screen Shot 2019-05-24 at 10.54.58 AM.png

Thank you,

Bobby

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

bobbym33667819

Avatar

bobbym33667819

bobbym33667819

31-05-2019

Hi Marc,

Thank you very much for your answer. I found out, though, that actually

/libs/dam/gui/coral/components/admin/contentrenderer/card/common/card-banner.jsp

is the one responsible for the Card and this method is called to determine the New property

Node resourceNode = request.getAttribute(RESOURCE_NODE) != null ? (Node) request.getAttribute(RESOURCE_NODE) : null;

boolean isNew = isNew(resourceNode);

The isNew() method comes from

/libs/dam/gui/coral/components/admin/contentrenderer/base/assetBase.jsp

and indeed the time is 24h.

Thanks,

Bobby

Answers (4)

Answers (4)

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

29-05-2019

I believe this JSP builds the Card for an asset.

/libs/cq/gui/components/authoring/assetfinder/paragraph/paragraph.jsp

It looks at the jcr:created property and if that property is newer than 24 hours it gets that New decoration.

Feel free to overlay this and change as needed.

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

30-05-2019

I uploaded a new asset to get the New decoration, inspected the element in the browser console then I saw that it was wrapped in <coral-card-asset>. I then went into the Adobe GIT repository and searched through the AEM source code for <coral-card-asset> and worked through the potential possibilities, ultimately arriving on that JSP.

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

30-05-2019

Hi marc,

Thank you for the details provided.

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

30-05-2019

Hi marc,

How did you track down this file. Thoughts here will be helpful.