When we talk about DAM, the first thing that comes to our mind is collection of images, audios and videos etc. But when we look at AEM DAM, we are provided with a number of features that are very useful and intriguing.
So today we will talk about Metadata Profiles for Digital Assets. There are a lot of Assets in a project and metadata is important to search in assets.
A Metadata Profile lets you apply default metadata to assets within a folder. Create a Metadata Profile and apply it to a folder. Any asset that you subsequently upload to the folder inherits the default metadata that you configured in the Metadata Profile.
How to create metadata profiles:
So today we will talk about Metadata Profiles for Digital Assets. There are a lot of Assets in a project and metadata is important to search in assets.
A Metadata Profile lets you apply default metadata to assets within a folder. Create a Metadata Profile and apply it to a folder. Any asset that you subsequently upload to the folder inherits the default metadata that you configured in the Metadata Profile.
How to create metadata profiles:
- Go to Tools-> Assets-> Metadata Profiles
- Create a metadata profile.
Fig : Create Metadata Profile in AEM |
- The metadata profile will be opened with different widgets.
Fig : Add the widget in metadata profile |
➤ Section Header
➤ Single Line Text
➤ Multi Line Text
➤ Number
➤ Date
➤ Standard Tags
Fig : Widgets for adding in the Metadata Profiles |
Fig : map the widget with any property |
Where all metadata profiles gets stored?
All metadata Profiles can be seen here “/conf/global/settings/dam/adminui-extension/metadataprofile” like this:
How to apply a metadata profile to any DAM Asset folder?
Fig : metadata profiles getting stored in conf |
How to apply a metadata profile to any DAM Asset folder?
When you assign a metadata profile to a folder, any sub folders automatically inherit the profile from its parent folder. This means that you can assign only one metadata profile to a folder. As such, consider carefully the folder structure of where you upload, store, use, and archive assets.
If you assigned a different metadata profile to a folder, the new profile overrides the previous profile. The previously existing folder assets remain unchanged. The new profile is applied on the assets that are added to the folder later.
Folders that have a profile assigned to it are indicated in the user interface by the name of the profile appearing in the card name.
After adding metadata profile to a folder,Under the jcr: content of a folder, you can see the metadata profiles which are attached to that particular folder.
Note: If you add something new to metadata profile, the previous existing assets can’t get updated with metadata until we run “Dam Update Asset” workflow on them. In Dam update asset, the process step named “Metadata Processor” adds the metadata profile of that image.Fig : applied metadata profile to dam assets folder |
Fig : Metadata profile processor for applying in dam assets folder |
Fig : added some property from metadata profile |
Note: Adding a default value to a new metadata property (which doesn't exist already at the ./jcr:content/metadata node) does not display the property and its value on the asset's Properties page by default. To view the new property on the assets's Properties page, modify the corresponding schema form.
|
Applying Metadata Profiles to folders from Properties:
1. In the left rail, click/tap Assets then navigate to the folder that you want to apply a metadata profile to.
2. On the folder, tap or click the check mark to select it and then tap or click Properties.
3. Select the Metadata Profiles tab and select the profile from the drop-down menu and click Save.
Fig : Apply the metadata profile by selecting the profiles in asset folder |
Applying a metadata profiles globally?
In addition to applying metadata profile to a folder, we can apply a metadata profile globally on the “/content/dam” folder from this link http://localhost:4502/mnt/overlay/dam/gui/content/assets/foldersharewizard.html/content/dam
Let's have a demonstration video on Metadata profiles in AEM DAM:
Let's have a demonstration video on Metadata profiles in AEM DAM:
Issues in adding standard Tag widget in AEM 6.3
In AEM 6.3, If we add “Standard Tags” Widget in metadata profile form, add some default values and save it, when we again reopen the form the default values get disappeared.
Actually values get saved in metadata profile but values are not able to be picked up in the console.It was working fine in AEM 6.1. When we compare it with AEM 6.3 , we found out that in AEM 6.1 there is an attribute data-default is setting which shows these values, but in AEM 6.3 this data-default attribute is not setting.
To solve this issue, we need to overlay “/libs/granite/ui/components/coral/foundation/form/autocomplete/render.jsp” with the following changes.
After Line 132, add
Actually values get saved in metadata profile but values are not able to be picked up in the console.It was working fine in AEM 6.1. When we compare it with AEM 6.3 , we found out that in AEM 6.1 there is an attribute data-default is setting which shows these values, but in AEM 6.3 this data-default attribute is not setting.
To solve this issue, we need to overlay “/libs/granite/ui/components/coral/foundation/form/autocomplete/render.jsp” with the following changes.
After Line 132, add
String str = cfg.get("default", "");
|
After line 157, add
So you need to make these two changes and things will work fine for you.
attrs.add("data-default", str);
|
So you need to make these two changes and things will work fine for you.
Let's demonstrate the above mentioned issue and its solution with the help of this video:
Hope it will help you guys !!
Thanks and Happy Learning.