How to add new custom properties to OOTB node types? | Community
Skip to main content
GK-007
Level 9
October 16, 2015
Solved

How to add new custom properties to OOTB node types?

  • October 16, 2015
  • 3 replies
  • 1059 views

Hi All,

We want to store some of the custom values to custom properties defined at OOTB types like cq:Page and cq:Tag.

Please help me in this regard.

Thanks,

Kishore

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

this is something which is not really recommended, at last for cq:Page I haven't seen it yet. A working way would be to add a mixin type to the cq:Page node, and then define in the mixin type, which additional properties you want to have. But again, this is something not recommended, in case of cq:Page you would rather store your properties in the jcr_content node (with the primary type "cq:pageContent", which can be extended as like without dealing with mixins first).

kind regards,
Jörg

3 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

this is something which is not really recommended, at last for cq:Page I haven't seen it yet. A working way would be to add a mixin type to the cq:Page node, and then define in the mixin type, which additional properties you want to have. But again, this is something not recommended, in case of cq:Page you would rather store your properties in the jcr_content node (with the primary type "cq:pageContent", which can be extended as like without dealing with mixins first).

kind regards,
Jörg

Level 9
October 16, 2015
Adobe Employee
October 16, 2015

Normally you would add your custom page properties to the dialog for the page you wish to create, as these values are nearly always project specific and not system wide properties that are required. Which properties do you wish to add to cq:Page and cq:Tags?

https://helpx.adobe.com/experience-manager/kb/CQ5PageProps.html

http://experience-aem.blogspot.de/2013/09/custom-page-properties-dialog.html