cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering nuxeo-slot-content

Anton_Petrov
Confirmed Champ
Confirmed Champ

I would like to hide the most of the slot items for the anonymous user. For the actions we can use the <filter-id> tag and predefined filters like in this example:

<action id="newDocument" link="select_document_type" enabled="true"    label="action.new.document" icon="/icons/action_add.gif">
  <category>SUBVIEW_UPPER_LIST</category>  
  <filter-id>create</filter-id>
</action>

Is there a way to filter the slot contents using the <filter-id> tag as above or the only way is using <nuxeo-filter> like this:

<nuxeo-slot-content name="recentsDrawerItem" slot="DRAWER_ITEMS" order="20">
  <template>
    <nuxeo-filter document="[[document]]" user="[[user]]" expression="!user.isAnonymous">
      <template>
        <nuxeo-menu-icon name="recents" icon="nuxeo:recent" label="app.recentlyViewed"></nuxeo-menu-icon>
      </template>
    </nuxeo-filter>
  </template>
</nuxeo-slot-content>
1 REPLY 1

Gregory_Carlin
Elite Collaborator
Elite Collaborator

You have to use nuxeo-filter element in your slot contribution. filter-id tag is only for Nuxeo XML Extensions.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.