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
Solved! Go to Solution.
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
Views
Replies
Total Likes
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.
Hi marc,
How did you track down this file. Thoughts here will be helpful.
Views
Replies
Total Likes
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.
Hi marc,
Thank you for the details provided.
Views
Replies
Total Likes
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
Views
Replies
Total Likes