Predefined types of document and folder
Is it possible to disable some types of document and folder? For example, when I add a new resource, I don't want “forum” and “blog” to appear between tha possible choices. Is there a way to disable them?
0 votes
2 answers
1792 views
Yes, it's possible through a contribution. Put the following XML in a XML file in folder OSGI-INF of your project.
<?xml version="1.0" encoding="UTF-8"?>
<component name="yourComponentName">
<require>org.nuxeo.webengine.blogs.ecm.types</require>
<require>org.nuxeo.ecm.platform.forum.types</require>
<extension target="org.nuxeo.ecm.platform.types.TypeService"
point="types">
<type id="Workspace">
<subtypes>
<type hidden="create">Forum</type>
<type hidden="create">BlogSite</type>
</subtypes>
</type>
</extension>
</component>