Hi,
I work with on-prem AEM DAM.
Can someone please help and explain how to apply custom metadata schema on collections?
We are about to release a custom metadata schema. I know how to apply it to the folders. However I don't see an option to apply the schema to collections.
A step by step would be much appreciated.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @PovEim, I think you're a little bit confused here. let be clear it here. Applying a metadata schema to collections in AEM means the schema is applied to the collection objects themselves (such as Lightbox or other collections), not to the assets contained within them.
Understanding How Collections Work in AEM:
In AEM, collections are virtual groupings of assets. They don’t physically move or duplicate assets — they just reference them. So:
The assets remain in their original folder in "/content/dam/..."
A collection is stored under "/content/dam/collections/..." and contains references to those assets.
Note: Applying a metadata schema to a collection does NOT affect the assets inside it, because the assets are not in the collection folder — they are only referenced. If you go the crx/de and go to your collection, you didn't find any asset node there because they are not exist there.
Conclusion: Apply Metadata Schema to Assets Based on Collection Membership is not natively supported out-of-the-box. If you want to do that you have to write your custom flow like workflow.
Suggestion: If you want to apply a custom metadata schema to an asset, you need to apply the schema to the folder where the asset physically resides. The schema will also be reflected when viewing the same asset within a collection, since collections only reference existing assets.
Hi @PovEim ,
I think AEM’s standard Metadata Schemas only apply to folders and assets, not to collections. To apply metadata to collections, use Metadata Profiles - a feature designed for assets and collections.
Steps to Apply a Metadata Profile to a Collection:
The metadata fields from the profile will now be visible on the collection’s properties screen and editable.
Thank you @ShivamKumar,
I didn't realise I should be applying a metadata profile instead of a schema. I will try it out. I will have to create a mirror image of the custom metadata schema in the profile and will apply.
I created a mockup metadata profile. When I went to apply it through 'apply to folders' - the Collections folder is not displayed. I know it exists because I get it as an option if go to apply the metadata schema. This is a little confusing 🙂
Thanks
Views
Replies
Total Likes
Hi @PovEim, You can apply a custom metadata schema to a collection in the same way you apply it to a folder. Follow the steps below:
After assigning the schema, test it:
Go to: Assets > Collections
Click any collection
Open its Properties
Custom Metadata:
Before applying on collections metadata looks like:
After applying on collections metadata looks like:
I followed the provided steps, and as shown in the attached snapshots, the custom metadata schema has been successfully applied to the collections.
Thank you @Mohit_Singh_01,
I followed the method suggested by you. I confirm I can see the Collections as a folder. However inside I only see an alphabet list of folders. Within those I see codes and users. I located my user which was under a code and letter r (even though my username starts with letter p). I was only allowed to apply the metadata schema on the top folder or all the collections I created (not individually). To my disappointment the applied schema did not reflect in the assets that are inside each collection... 😕 However the metadata schema appeared in the properties of each collection.
Hi @PovEim, I think you're a little bit confused here. let be clear it here. Applying a metadata schema to collections in AEM means the schema is applied to the collection objects themselves (such as Lightbox or other collections), not to the assets contained within them.
Understanding How Collections Work in AEM:
In AEM, collections are virtual groupings of assets. They don’t physically move or duplicate assets — they just reference them. So:
The assets remain in their original folder in "/content/dam/..."
A collection is stored under "/content/dam/collections/..." and contains references to those assets.
Note: Applying a metadata schema to a collection does NOT affect the assets inside it, because the assets are not in the collection folder — they are only referenced. If you go the crx/de and go to your collection, you didn't find any asset node there because they are not exist there.
Conclusion: Apply Metadata Schema to Assets Based on Collection Membership is not natively supported out-of-the-box. If you want to do that you have to write your custom flow like workflow.
Suggestion: If you want to apply a custom metadata schema to an asset, you need to apply the schema to the folder where the asset physically resides. The schema will also be reflected when viewing the same asset within a collection, since collections only reference existing assets.
Thanks for clarifying this, @Mohit_Singh_01. I tested it and confirm that custom metadata schema applied to an asset within a folder follows through to the same asset in a collection environment. This fully answers my question.
Thanks!