You need to add an action with a fitler that checks your specific case.
To test for the type use:

       <filter id="my_file_filter">
         <rule grant="true">
           <type>File</type>
         </rule>
       </filter>

To test for the fact that it's in a Section I don't think we have a  
built-in way, try something like:

       <filter id="my_in_section_filter">
         <rule grant="true">
           <condition>#{myBean.inSection}</condition>
         </rule>
       </filter>

And a "myBean" Seam component with a method isInSection that checks for
documentManger.getSuperParentType(currentDocument).equals("Section")

(all untested...)

Florent

On 27 May 2008, at 14:05, Vincent Bonamy wrote:

> Hello,
>
> I would like to add an action (via the extension point actions of the
> org.nuxeo.ecm.platform.actions.ActionService component) only for Files
> which are in Sections.
> Could you say me what filter can I use for this please ?
>
> [I thought the filter named "can_unpublish" was designed for that  
> but in
> fact not ...]
>
> Thanks,
> Vincent.
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to