Hello,
If you want to have a clean Domain without SectionRoot and TemplateRoot
create a content-template-contrib.xml (use as example the file from
/nuxeo-platform-content-template-manager) in your plugin and remove the
templateItems corresponding to these two types from the DomainFactory
factoryBinding like this:
<factoryBinding name="DomainFactory"
factoryName="SimpleTemplateFactory" targetType="Domain">
<template>
<templateItem typeName="WorkspaceRoot" id="workspaces"
title="Workspaces"
description="Workspaces"/>
</template>
</factoryBinding>
Also make sure that your contribution is deployed after the default one
by adding org.nuxeo.ecm.platform.content.template as Require-Bundle in
your MANIFEST.MF
Mariana
//
Jesus Ibañez Calvo wrote:
Hello!!
could someone to help on how to hide SectionRoot & TemplateRoot from
Root? i have the next component (which is registered with success),
but they still appear:
<component name="org.nuxeo.ecm.platform.actionsContrib">
<require>org.nuxeo.ecm.platform.types</require>
<extension target="org.nuxeo.ecm.platform.types.TypeService"
point="types">
<type id="Domain">
<label>Domain</label>
<icon>/icons/domain.gif</icon>
<bigIcon>/icons/domain.gif</bigIcon>
<category>SuperDocument</category>
<description>Domain.description</description>
<default-view>view_documents</default-view>
<create-view>create_domain</create-view>
<views>
<view id="user_dashboard" value="user_dashboard" />
</views>
<deniedSubtypes>
<type>SectionRoot</type>
<type>TemplateRoot</type>
</deniedSubtypes>
<layouts mode="any">
<layout>heading</layout>
</layouts>
<layouts mode="edit">
<layout>heading</layout>
<layout>D5-dublincore</layout>
</layouts>
</type>
</extension>
</component >
Thks. in advanced
--
Jesus
------------------------------------------------------------------------
_______________________________________________
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