Use of default value for a protected property

  Written by The Jahia Team
 
Developers
   Estimated reading time:
7.2.0.2
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