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

1947 views

ANSWER



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>
1 votes



Thank you very much!
03/02/2012


Hi , I have the same problem and i try to do it but it does not work.

you have any idea. Thanks

0 votes