내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Different metadata for different asset category

Avatar

Level 4

Hi,

We have a requirement that depending on the category of the asset , a list of metadata needs to be applied to that asset ( eg, marketing asset have a different set of metadata than product asset )

Is it possible to achieve the same with AEM asset metadata schema or somehow else?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

One way is define all the fields & then control with acl.

Alternative for classic ui is using a listener on the particular field you want to hide and then hide the field based on the path. To do this, create a listeners node of type nt:unstructured under the field  (e.g. /apps/dam/content/asseteditors/image/jpeg/formitems/person/listeners) and set the beforeloadcontent property something like:
function(f, r, p) { if (p.indexOf("/content/dam/geometrixx/") == 0) { f.hide(); } return true; }
This will hide this field for assets under /content/dam/geometrixx. You could adjust this to meet other requirements.

Tryout Apply same principal to touch ui but never tried personally.

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Level 10

There is quite a lot of documentation on this subject in the CQ docs. See this topic:

http://docs.adobe.com/docs/en/cq/current/dam/metadata_for_digitalassetmanagement.html

Avatar

Level 4

Hi Scott,

Looking for a little different thing.Need to define 2 kinds of asset ( lets say both having MIME type jpeg), but having different metadata schema.

Is it possible?

Avatar

정확한 답변 작성자:
Level 10

One way is define all the fields & then control with acl.

Alternative for classic ui is using a listener on the particular field you want to hide and then hide the field based on the path. To do this, create a listeners node of type nt:unstructured under the field  (e.g. /apps/dam/content/asseteditors/image/jpeg/formitems/person/listeners) and set the beforeloadcontent property something like:
function(f, r, p) { if (p.indexOf("/content/dam/geometrixx/") == 0) { f.hide(); } return true; }
This will hide this field for assets under /content/dam/geometrixx. You could adjust this to meet other requirements.

Tryout Apply same principal to touch ui but never tried personally.

Avatar

Level 4

Thanks Sham,

Will try that approach.