AEM CQ5 Tutorials AEM CQ5 Tutorials

Show Navigation Hide Navigation
  • Home
  • Tutorials
    • AEM/CQ5 Tutorials
    • AEM Forms
  • Interview Questions
    • AEM/CQ5 Interview Questions
  • AEM Test Series
  • Contribute us

Create Metadata Schema form for Custom MIME types

Ankur Ahlawat January 16, 2018 Adobe AEM/CQ5 Tutorials, Tutorials

Metadata Schema form based on MIME types is very useful, when we cannot apply metadata schema on a folder as it contains mixed assets (image, video, pdf etc..). I have come across this requirement multiple times where client has mixed assets in its folder and he wants to have different metadata schema for different types of assets. Like for image a different type of form and for video a different type of form.

Even sometimes requirement comes like for different type of images clients wants different type of metadata schema forms. All of this use cases can be easily handled by creating Metadata Schema form based on MIME types.

Follow below steps to create Metadata Schema form for custom MIME types:-

AEM doesn’t comes with any default metadata schema forms for png image type. In this tutorials i will show you how to create custom metadata schema forms for png image type.

Note:- You can create any custom mime types like xyz of type image/xyz or video/xyz depending on your requirement.

  • Navigate to Tools > Assets > Metadata Schema > default > image
  • Select jpeg schema form, Copy it and Enter new Metadata Schema Form name (png).
  • Click Copy.
    create-metadata-schema-forms-mime-type
  • Select png metadata schema form and edit it, to add new fields based on your requirement.
  • Lets add one text field to it.
    • Form Right side Panel Drag and drop Single Line Text component on Form.
    • Select the newly dropped component.
    • Edit the component and add a Title, placeholder text as shown.
    • Edit Map to Property from ./jcr:content/metadata/default to your property name that you want to map against it.(Like ./jcr:content/metadata/dc:title)
      Note:- Map to Property specifies the relative path/name to the asset node where it is saved in the CRX repository. It starts with “./” because indicating that the path is under the asset’s node.
    • Click Save.
      custom-metadata-schema-editor
  • Now navigate to /etc/dam/metadataeditor/mimetypemappings in crx/de.
  • Add a new mimetypemapping.
    • Select mimetypemapping and create a new node of type nt:unstructured and name as png.
      add-mimetypemapping
    • Click Save All.
    • Add below properties to png node.
      • Name – exposedmimetype
        • Type – String
        • Value – image/png
      • Name – mimetypes
        • Type – String[]
        • Value – image/png
          Note:- mimetypes property defines on which mime type our metadata schema will be applied
          add-mime-types-metadata-schema-aem
  • Click Save All.

That’s it, you have created new metadata schema based on mime type. As we have created this metadata schema under default, so it is already applied on all the folders that on which default metadata schema form is applied.

Note:- Modifying a jpeg schema under default/image only modifies the metadata layout (asset properties) for assets with MIME type IMAGE/JPEG. However, if you edit the default schema, your changes modify the metadata layout for all types of assets.

To test our png mime type based  metadata schema , upload a png asset in a folder and check its properties.

test-mime-type-metadata-schema-forms

Important Points to Notice:-

  • You cannot delete the out of the box metadata schema forms in AEM Assets.
  • You can add new tabs or form items to the metadata schema form. The tabs and form items derived from the parent are in the locked state. You cannot alter them at the child level.
  • If you don’t want inherited tabs and field like BASIC, ADVANCED etc.. Create schema parallel to default metadata schema and override fields over there as shown in below screenshot:-
    apply-metadata-schema-forms

Hope this tutorial helps in increasing your knowledge.

Related

Spread the love
5    
AEM 6.3 Asset Metadata MIME Type Metadata Schema

Written by Ankur Ahlawat

I’m a AEM 6 Certified Lead Developer having 9+ years of industry experience and an active member of AEM community. Want to work together to help AEM community ? I’d love to hear from you. Just drop a mail at [email protected]

One Response to "Create Metadata Schema form for Custom MIME types"

  1. ganesh says:
    June 19, 2018 at 6:48 am

    Can you please upload adaptive forms creation

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to AEM CQ5 Newsletter

RSS Recent Posts

  • Integrate AEM with Azure Storage SDK May 13, 2025 Ankur Ahlawat
  • Implement Metadata Driven Permissions in AEM December 3, 2024 Ankur Ahlawat
  • HTTP ERROR 404 Not Found – CRX/DE Not available September 24, 2024 Ankur Ahlawat
  • AEM Asset View : Bulk Import Assets using Azure September 9, 2024 Ankur Ahlawat
  • AEM Performance Testing Using Jmeter July 30, 2024 Ankur Ahlawat
  • Create Service User in AEM As Cloud Service April 29, 2024 Ankur Ahlawat
  • Tail logs on AEM As Cloud Service February 21, 2024 Ankur Ahlawat

Popular Tags

Adobe AEM AEM 6.1 AEM 6.3 AEM 6.4 AEM 6.5 AEM 6.x AEMAsCloud AEM Basics AEM Clientlibs AEM CQ5 Tutorials AEM Indexing AEM Plugin Asset Metadata Best Practices Cloud Service Component ContextHub core components CQ5 Custom Component enable cors aem Error Handler HTL Installation Integration Interview Questions Maven Multifield Nested Multifield OSGI OSGI Bundles OSGI Configuration OSGI Services Overlay Core Component personalization Progressive Web Apps Proxy Components Query Performance Sightly Sling TarMK Template Touch UI User Permission

Trending Posts

Adobe Dumps
AEM Interview Questions
Sightly New Features
Create Website in AEM

Pages

  • About Us
  • AEM Discussion
  • Ask Question
  • Contribute us
  • Privacy Policy
  • Search
  • Terms and Conditions

RSS feed RSS - Posts

RSS feed RSS - Comments

© AEM CQ5 Tutorials | 2025 ALL RIGHTS RESERVED

Powered by Pinboard Theme and WordPress

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT