root/org.nuxeo.ecm.platform/trunk/nuxeo-platform-comment-core/src/main/resources/OSGI-INF/comment-schemas-contrib.xml

Revision 22282, 1.2 kB (checked in by atchertchian, 2 years ago)

configure comment prefetch fields

Line 
1 <?xml version="1.0"?>
2
3 <component name="org.nuxeo.ecm.platform.comment.coreTypes">
4
5   <require>org.nuxeo.ecm.core.schema.TypeService</require>
6
7   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
8     <schema name="comment" src="schema/comment.xsd" />
9   </extension>
10
11   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
12
13     <doctype name="CommentRoot" extends="Folder">
14       <facet name="HiddenInNavigation" />
15     </doctype>
16
17     <doctype name="Comment" extends="Document">
18       <schema name="comment" />
19       <schema name="common" />
20       <schema name="dublincore" />
21       <facet name="HiddenInNavigation" />
22       <prefetch>
23         dc:title, dc:modified, comment.author, comment.text,
24         comment.creationDate
25       </prefetch>
26     </doctype>
27
28     <doctype name="HiddenFolder" extends="Folder">
29       <facet name="HiddenInNavigation" />
30     </doctype>
31   </extension>
32
33   <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
34     point="types">
35     <types>
36       <type name="CommentRoot">default</type>
37     </types>
38     <types>
39       <type name="HiddenFolder">default</type>
40     </types>
41   </extension>
42
43 </component>
Note: See TracBrowser for help on using the browser.