Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
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
Résolu ! Accéder à la solution.
Vues
Réponses
Nombre de J’aime
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
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
Hi marc,
How did you track down this file. Thoughts here will be helpful.
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
Hi marc,
Thank you for the details provided.
Vues
Réponses
Nombre de J’aime
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
Vues
Réponses
Nombre de J’aime
Vues
Like
Réponses
Vues
Likes
Réponses
Vues
Likes
Réponses