definitions extend metadata Developer Jahia 7.3 Jahia 8

Add properties to metadata tabs


Ho can I add som new properties in the metadata tab?


You can simply add a new mixin to extend the types you want, and add some new properties in the metadata tab


Here is an example of mixin that extend the types nt:hierarchyNode, jnt:content and jnt:page by adding 2 new properties myCustomMetadata1 and myCustomMetadata2

[jcmix:myCustomMetadata] mixin
 extends = nt:hierarchyNode, jnt:content, jnt:page
 itemtype = metadata
 - myCustomMetadata1 (string)
 - myCustomMetadata2 (string)