cancel
Showing results for 
Search instead for 
Did you mean: 

DOCUMENT_VIEWS_ITEMS

Ahmad_Ben_Maall
Star Contributor
Star Contributor

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

Thanks.

1 ACCEPTED ANSWER

Jackie_A
Confirmed Champ
Confirmed Champ

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.

View answer in original post

1 REPLY 1

Jackie_A
Confirmed Champ
Confirmed Champ

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.

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.