我正在尝试使用CND文件注册自定义节点类型,如下所示-
ymin
当我仅使用一个属性(例如title或description或sling:resourceType)时,它将起作用。我在这里想念什么?
答案 0 :(得分:0)
您可以尝试以下配置吗?
删除orderable
,
<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<ns='http://custom.namespace.com/ns'>
[ns:CustomType] > nt:base
- title (String)
- description (String)
- sling:resourceType (String) = 'myproject/components/test'
或从nt:unstructered
扩展:
<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<ns='http://custom.namespace.com/ns'>
[ns:CustomType] > nt:unstructered
orderable
- title (String)
- description (String)
- sling:resourceType (String) = 'myproject/components/test'