How to filter subview on a particular tab ?

Hello,

I'd like to filter “new document” button in a particular tab. I assume that I have to filter the “SUBVIEW_UPPER_LIST” with id “create” on my new tab. May be I have to write an EL condition but I don't know the exact syntax. Or may be there's another way to do so ?

Here's my extension point :

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
     <action id="TAB_UNR_PICTURE_BOOK"
          link="/widgets/unr_book_view03.xhtml" order="50"
          enabled="true"
          label="livre">
          <category>VIEW_ACTION_LIST</category>
          <filter id="display_unr_picture_book">
               <rule grant="true">
                    <permission>AddChildren</permission>
               </rule>
          </filter>
     </action>
</extension>

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
    <filter id="create">
      <rule grant="false">
        <condition>myCondition</condition>
      </rule>
    </filter>
</extension>

What's the condition to filter this subview whan I'm viewving my tab “TAB_UNR_PICTURE_BOOK” ?

Thank you very much for any help or idea

Regards

Fabrice

0 votes

1 answers

1968 views

ANSWER



Hi,

I think you're looking for this documentation

0 votes