Skip to end of metadata
Go to start of metadata

When you define new document types, you can customize the tabs that are presented. On documents like notes or file, you can disable the tabs inherited from the extended Nuxeo document type. On folderish document types, such as customized folders or workspaces, you can disable tabs displayed by default, but you can also change the content view that is used to present the content of your document type.

For instance, on Nuxeo DM, the Content tab lists all the documents that are the direct children of the current folder, that are not deleted (those are available in the Trash tab) and are not hidden in navigation. You can change this to display, let's say, the direct children of the current folder that are not deleted and not hidden in navigation and were created only by you.

Disabling tabs on your document type

This can be done on any document type, folderish or not.

To disable tabs on your document type:
  1. On your document type, click on the Tabs tab.
  2. Check the tabs that you don't want to be displayed for your document (ex: Comment, History, Preview,...).
  3. Click Save so your changes are kept.

Customizing the Content and Trash tabs

The content displayed in the Content tab of a folder, for instance, is the result of a query that says that we want to display all the documents that:

  • are the direct children of the current folder,
  • are not "deleted",
  • are not hidden in navigation.

You can create new views that will display the results of a query you have customized. This is done using Content views. And then, you can choose to use your content view in the Content or Trash tab of your document types.

To change the list of documents displayed in the Content and Trash tabs:
  1. Create a new Content View.
  2. On the document type definition, click on the Tabs tab.
  3. Select the content view you want to use for:
    • the "Main content", ie the Content tab of your document type,
    • the "Trash content", ie the Trash tab of your document type.
  4. Click Save.

Adding a new content view (documents listing) tab to a document type

Using Content views, you can also add new tabs on the documents. This is useful in many cases, such as when you want to display content on different tabs depending on the state of the documents. Or when you want to implement some specific business views.

To add a new tab on your document:
  1. In the Tabs tab of your document type, click on Content views.
  2. Click on Additional tabs configuration and fill in the new tab configuration form:
    • Label: type the label of your new tab.
    • Content Views: Select the content view that should be used.
    • Order: type the order of the tab.
    • Tab enablement: Select the conditions that need to be met for the tab to be displayed.
  3. Click Save.
Related Howtos
Page: Add a new virtual navigation entry
Page: Fetch documents with a query on date parameters
Page: Automatic PDF conversion
Page: Make your new document type support the trash feature
Page: Customize default tabs - withdraw built-in tabs - add content view tabs
Page: Define a new content view
Page: Define a Document Type
Page: How to define a new DocumentRouteStep Type
Page: Tabs
Related Tutorials
Page: Add a News content view on workspaces
Page: Implement the News document
Page: Define your content model
Page: Adapt the search screen
Page: Adding a "type" property to File document type