In AEM 6.3 How Long Does a New Asset Card Shows "New" Label | Community
Skip to main content
bobbym33667819
Level 3
May 24, 2019 5:57 PM UTC
Solved

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

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.

Thank you,

Bobby

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bobbym33667819
bobbym33667819Accepted solution
Level 3
May 31, 2019 6:03 PM UTC

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

5 replies

bobbym33667819
bobbym33667819AuthorAccepted solution
Level 3
May 31, 2019 6:03 PM UTC

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

Translate
cquser1
Level 7
May 31, 2019 5:40 AM UTC

Hi marc,

Thank you for the details provided.

Translate
Employee
May 30, 2019 2:47 PM UTC

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.

Translate
cquser1
Level 7
May 30, 2019 7:18 AM UTC

Hi marc,

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

Translate
Employee
May 29, 2019 1:33 PM UTC

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.

Translate