cancel
Showing results for 
Search instead for 
Did you mean: 

Predefined types of document and folder

Alice_
Star Contributor
Star Contributor

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?

1 ACCEPTED ANSWER

Vincent_Dutat
Confirmed Champ
Confirmed Champ

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>

View answer in original post

3 REPLIES 3

Vincent_Dutat
Confirmed Champ
Confirmed Champ

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>

Thank you very much!

lassad_belhedi1
Champ in-the-making
Champ in-the-making

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

you have any idea. Thanks

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.