Hello All,
Using metadata schema editor in Tools -> Assets -> Metadata Schemas. We have made title and description as required fields.
Applied this schema to folder and uploaded image. It doesn't show "REQUIRED METADATA MISSING" alert in List and Column View but we see the alert only in Card and Insights View.
Let us know how can we enable this alert for List and Column view as well.
PFA screenshots for reference.
I forgot to mention - We are using AEM 6.5.16 On Prem Instance
@PrathikSM : This seems to be the expected behavior. The missing metadata alert is defined/created in card view as of now. You can see this in the file at :- /libs/dam/gui/coral/components/admin/contentrenderer/card/common/card-banner.jsp
If you have to do this in other views, you will have to modify the rendering jsp file accordingly. But please understand that there is hardly any space on list and column views for the this error to be shown. Maybe that's why it is designed like this OOTB.
Also, as you can see this error when you check the properties of these assets irrespective of view. Please review your requirements and see if you absolutely need it in all views, you may end up making lot of styling changes in list and column views.
thanks.
Views
Replies
Total Likes
Whenever asset has missing "required metadata" - there has to be warning or alert across all views - card, list, column etc., (Need not be exactly match "REQUIRED METADATA MISSING" on the thumbnail)
Requirement :
We want to read the details from title and show it as alt text for the image. We don't want use the asset name for alt text as we want it to be meaningful.
I agree we can see the error when we check the properties of the assets irrespective of view but users don't get to know that they need to add details until they open properties. After upload once asset gets processed and they see the thumbnail with no errors or alerts - they will start referencing in the pages. We want to put some alert mechanism so that users get to know of missing required metadata.
@PrathikSM : Thanks for providing the context. Maybe you can try a different approach instead of modifying OOTB behavior.
A simple approach I can think of is to query all the DAM assets with missing title and description and then update them accordingly (manually or bulk update).
You can run below query on this url: http://localhost:4502/libs/cq/search/content/querydebug.html
path=/content/dam
type=dam:Asset
1_group.p.or=true
1_group.1_property=jcr:content/metadata/dc:title
1_group.1_property.operation=not
1_group.2_property=jcr:content/metadata/dc:description
1_group.2_property.operation=not
p.limit=-1
Once you have the list of those assets, you can create those fields (this will give you all the assets which does not have title OR description property set).
thanks.
Views
Replies
Total Likes
Thank you for the inputs but bulk update won't help us as Title for each image would be different and that is something which dam authors would decide.
We are not looking for ways to update the title and description in missing places. Instead we are looking for ways to alert dam authors about missing metadata once any new image gets uploaded before it gets referenced in any pages.
When we get some alerts/warnings about assets in one view(card view) - It should be viewable in other views(list/card view)as well may not be with same experience. This is lacking or may be I am missing to find in case of list/column view. It looks more like missing experience at product level.
@PrathikSM : In that case you will have to update the rendering in list and column view. Currently it is meant to be shown on card view only.
Views
Replies
Total Likes
Views
Likes
Replies