This content has been marked as final.
Show 2 replies
-
1. Re: How to disable same name sibling
hchiorean Sep 8, 2016 10:39 AM (in response to kevin.senechal)You cannot disable SNS. If you don't want SNS, you have to model your data accordingly. The JCR spec explains (via the CND format or the API) how to create data types which don't allow SNS.
-
2. Re: How to disable same name sibling
elvisisking Sep 9, 2016 8:10 AM (in response to kevin.senechal)Hi Kevin,
I wanted to do the same thing and found this node type definition. You can use it in your CND as your base node type instead of using nt:unstructured.
/*
* A node type that does not allow same named siblings. Otherwise it is identical to nt:unstructured.
*/
[xyz:baseNodeType] orderable
- * (undefined) multiple
- * (undefined)
+ * (nt:base) = xyz:baseNodeType version
HTH,
Dan