Nuxeo Server

How to Display Non-Folderish Documents (Files, Note, ...) in the Left Tree

Updated: December 5, 2017 Page Information Edit on GitHub

This page is scheduled for review and update. Check back soon for updated content!

The left tree is built using a query that is ran recursively. One of the clauses of the query makes sure that only folderish documents are displayed (AND ecm:mixinType = 'Folderish'). The query is defined in the "tree_children" page provider. See below a sample override of this query without the "Folderish" clause. You can contribute to the "providers" extension using the XML Extensions feature.

<require>org.nuxeo.ecm.webapp.pageproviders.contrib</require>

  <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers">

    <coreQueryPageProvider name="tree_children">
      <property name="maxResults">PAGE_SIZE</property>
      <pattern>
        SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isProxy = 0 AND
        ecm:mixinType != 'HiddenInNavigation'
        AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState !=
        'deleted'
      </pattern>
      <sort column="dc:title" ascending="true" />
      <pageSize>50</pageSize>
    </coreQueryPageProvider>
</extension>

You can adapt this sample so as to filter anything you would like to see or not in the left tree.

7 days ago Manon Lumeau add tags for doc days
a month ago manonlumeau Added content-review-lts2017 label
2 months ago manonlumeau NXDOC-1346-FT review screenshot
3 years ago Solen Guitter 7
3 years ago Manon Lumeau 6
3 years ago Solen Guitter 5
4 years ago Solen Guitter 4
4 years ago Solen Guitter 3
5 years ago Alain Escaffre 2
5 years ago Alain Escaffre 1
History: Created by Alain Escaffre