Hello Mariana!!
first of all thanks for your response, I have followed your clues, but the
tabs still appear, my files look as follow:
--------------------------------------------------
my-content-template-contrib.xml
<component
name="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.myTemplateContrib">
<require>org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib</require>
<extension
target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
point="factoryBinding">
<factoryBinding name="DomainFactory" factoryName="SimpleTemplateFactory"
targetType="Domain">
<template>
<templateItem typeName="WorkspaceRoot" id="workspaces"
title="Workspaces"
description="Workspaces"/>
</template>
</factoryBinding>
</extension>
</component>
---------------------------------------
MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 1
Bundle-Name: d5ecm project
Bundle-SymbolicName: org.nuxeo.book.upcoming;singleton:=true
Bundle-Version: 0.0.1
Bundle-Vendor: d5ecm
Nuxeo-Require: org.nuxeo.ecm.core, org.nuxeo.ecm.core.schema,
org.nuxeo.ecm.webapp.core
Require-Bundle: org.nuxeo.ecm.platform.content.template
Nuxeo-Component: OSGI-INF/my-content-template-contrib.xml
what am i doing wrong?
Thks.
Jesus
On Thu, Jul 23, 2009 at 2:22 AM, Mariana Cedica <[email protected]> wrote:
> 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
>>
>>
>
>
--
Jesus
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm