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

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

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

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

View solution in original post

5 Replies

Avatar

Employee

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

Level 8

Hi marc,

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

Avatar

Employee

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

Level 8

Hi marc,

Thank you for the details provided.

Avatar

Correct answer by
Level 3

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