DOCUMENT_VIEWS_ITEMS

Hello, I want to know how i can hide or delete the default summary tab.

Thanks.

0 votes

1 answers

179 views

ANSWER



If you search in your deployed tomcat server, or through the nuxeo-web-ui source code for “DOCUMENT_VIEWS_ITEMS” you will come across the 4 default slot content contributions that make up the OOTB document view in web ui:

<nuxeo-slot-content name="documentViewItem" slot="DOCUMENT_VIEWS_ITEMS" order="10">
  <template>
    <nuxeo-page-item name="view" label="browser.view"></nuxeo-page-item>
  </template>
</nuxeo-slot-content>


.
.
.


<nuxeo-slot-content name="documentPermissionsItem" slot="DOCUMENT_VIEWS_ITEMS" order="20">
  <template>
    <nuxeo-filter document="[[document]]" expression="!document.isVersion">
      <template>
        <nuxeo-page-item name="permissions" label="browser.permissions"></nuxeo-page-item>
      </template>
    </nuxeo-filter>
  </template>
</nuxeo-slot-content>

.
.
.


<nuxeo-slot-content name="documentHistoryItem" slot="DOCUMENT_VIEWS_ITEMS" order="30">
  <template>
    <nuxeo-page-item name="history" label="browser.history"></nuxeo-page-item>
  </template>
</nuxeo-slot-content>

.
.
.

<nuxeo-slot-content name="documentPublicationItem" slot="DOCUMENT_VIEWS_ITEMS" order="40">
  <template>
    <nuxeo-filter document="[[document]]" expression="!this.isProxy(document) && this.hasFacet(document, 'Publishable')">
      <template>
        <nuxeo-page-item name="publication" label="browser.publications"></nuxeo-page-item>
      </template>
    </nuxeo-filter>
  </template>
</nuxeo-slot-content>

The first slot content is the “main” summary tab. It can be disabled by creating a new custom bundle file and adding this exact code but with the disabled attribute.

0 votes