cnd default value property Jahia 7.3 Jahia 8

Use of default value for a protected property

Question

When the definition of a node has a protected property with a default value, this value is not displayed in the JCR.

Cause

The use of the attribute "autocreated" is mandatory in the definition file.

Solution

Before:

[jnt:fbactualite] > jnt:content, jmix:droppableContent
- test2 (boolean) = 'true' mandatory protected

After:

[jnt:fbactualite] > jnt:content, jmix:droppableContent
- test2 (boolean) = 'true' mandatory protected autocreated