AEM Assets · updated

How do metadata schemas work in AEM Assets, and how do you apply one to a folder?

A metadata schema decides which fields people see and fill in on an asset's Properties page, and how those fields are laid out. You manage schemas under Tools > Assets > Metadata Schemas. Schemas are arranged by file type and inherit from a 'default' form. To give one folder its own fields, make a variant of a schema and use Apply to Folders; sub-folders inherit it until a different schema is applied lower down.

In plain words

A schema is a form. It does not hold the data; it says which boxes to show and where each box saves its value on the asset. A product-photo folder might need a 'Season' drop-down that the legal-documents folder does not. You build that as a second form and attach it to the folder.

The forms AEM ships with

FormWhat it is for, per Adobe
defaultThe base form for assets. The forms below inherit from it
image (with jpeg and tiff below it)Images with MIME types such as image/jpeg and image/png
application (with pdf below it)Files such as application/pdf and application/zip
videoVideo assets such as video/avi and video/mp4
dm_videoDynamic Media videos
collectionCollections
contentfragmentContent Fragments
formsAdobe Experience Manager Forms

Editing the form for one MIME type changes the Properties page for that type and its sub-types only. Adobe's example: changing the jpeg form under default/image changes the layout for image/jpeg assets. Editing the default form changes the layout for every type.

What a field can be

The editor's Build Form tab offers: Section Header, Single Line Text (stored as a string), Multi Value Text (stored as a string array), Number, Date, Dropdown, Standard Tags, Smart Tags, Hidden Field, Asset Referenced By, Asset Referencing, Products References and Contextual Metadata.

Settings that matter

  • Map to Property says where the value is saved. It starts with ./ and must not contain spaces. Example from Adobe: ./jcr:content/metadata/dc:title.
  • Adobe recommends mapping only one field to a given property. If two are mapped, the one added last wins.
  • Required marks a field as mandatory. You can then search for assets that are missing it: Filters > Metadata Validation > Invalid.
  • Disable Edit makes a field read-only. Adobe recommends it for protected properties such as ./jcr:created, otherwise saving fails with 'Asset(s) failed to modify'.
  • Tabs and fields that come from a parent form are locked in the child form.
  • Drop-down choices can be typed in, or read from a JSON file through the JSON Path field.

How to give a folder its own metadata form

  1. Go to Tools > Assets > Metadata Schemas.
  2. Select Create, give the form a title, and open it with Edit. Or open the default form to make a variant of it.
  3. Drag fields from the Build Form tab onto a tab, and set the label, Map to Property, and Required or Disable Edit in the Settings tab.
  4. Save. The form is listed on the Metadata Schema Forms page.
  5. Select the form, choose Apply to Folders from the toolbar and pick the folder.
  6. Open an asset in that folder and check its Properties page.

Related tools and pages on this site

Questions

Do sub-folders get the same schema?

Yes. Adobe says the schema applied to the top-level folder is inherited by sub-folders. If a different schema is applied to a sub-folder, the inheritance stops there.

Does changing a schema change the metadata already stored?

A schema is the form shown on the Properties page. Adobe's page describes it as fields and layout mapped to properties on the asset; it does not describe any rewrite of stored values when the form changes.

How do I find assets with required metadata missing?

Mark the field as Required in the schema. Then, in search, open the Filters panel, expand Metadata Validation and select Invalid.

Can I change an asset's type on its Properties page?

No. Adobe says the asset Type on the Basic tab cannot be modified there; a custom or modified schema form is needed to change the MIME type.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one AEM Assets question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →