Hello Benjamin!!

First of all thanks for your response, your help has been very useful.

Now, i want to enable the manage rights tab on non-folderish documents,
follofing the url
http://www.nuxeo.org/xwiki/bin/view/FAQ/rightsOnNonFolderishDocument/

I have a file named actions-config.xml in the
"nuxeo-dm-5.2.0/server/default/deploy/nuxeo.ear/config" directory, with the
next code:


<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.actionsContrib">
<require>org.nuxeo.ecm.platform.actions</require>

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">

<action id="TAB_RIGHTS" link="/incl/tabs/document_rights.xhtml" order="50"
      label="action.view.rights" icon="/icons/file.gif">
      <category>TAB_MANAGE_sub_tab</category>
      <filter-id>non-folderish-rights</filter-id>
    </action>

</extension>

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="filters">

    <!--manage rights on non-folderish  -->
    <filter id="non-folderish-rights">
      <rule grant="true">
        <permission>Manage everything</permission>
      </rule>
    </filter>

</extension>

</component>

but, the tab rights do not appear on non folderish document, am i doing
something wrong?


Thks. in advanced

Jesus Ibañez

On Thu, Jun 25, 2009 at 4:23 PM, Benjamin JALON <[email protected]> wrote:

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


-- 
Jesus
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to