You can disabled a type this is not documented (I go to do that):
<type id="Note" remove="true"/>
If you contribute on the same type without the remove attribute equals
true a merge is done.
So your contribution behind do nothing (no new configuration).
But you can also contribute to deny a subtype with deniedSubtypes like
that:
<type id="Workspace">
< deniedSubtypes>
<type>Folder</type>
</deniedSubtypes>
</type>
________________________________________________________________
Benjamin JALON, Software Engineer, Nuxeo SAS: Open Source ECM.
Mail: [email protected] - Web: http://www.nuxeo.com/ - Tel: +33 (0)1 40
33 79 87
Le 25 juin 09 à 22:30, Jesus Ibañez Calvo a écrit :
Hello everybody!!
I want to hide or disable a "note" document type, for prevent
creation into "workspace" or folder
i have the next code:
<component name="org.nuxeo.ecm.platform.actionsContrib">
<require>org.nuxeo.ecm.core.CoreExtensions</require>
<require>org.nuxeo.ecm.platform.types</require>
<extension target="org.nuxeo.ecm.platform.types.TypeService"
point="types">
<type id="Workspace">
<label>Workspace</label>
<icon>/icons/workspace.gif</icon>
<bigIcon>/icons/workspace_100.png</bigIcon>
<icon-expanded>/icons/workspace_open.gif</icon-expanded>
<category>Collaborative</category>
<description>Workspace.description</description>
<default-view>view_documents</default-view>
<create-view>create_workspace</create-view>
<subtypes>
<type>Workspace</type>
<type>Folder</type>
<type>File</type>
<!--<type>Note</type>-->
</subtypes>
<layouts mode="any">
<layout>heading</layout>
<!--<layout>file</layout>-->
</layouts>
<layouts mode="edit">
<layout>heading</layout>
<!--<layout>file</layout>-->
<layout>dublincore</layout>
</layouts>
</type>
</extension>
but, when i click to create a new document, the "note" doc. type
appears again
could someone help me on this?
Thks. in advanced.
--
Jesus Ibañez
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm