Remove "change comment"

When I edit my document I see the “Change comment” text area, is there anyway not to show it? My document doesn't have any facets.

0 votes

1 answers



If you speak about the 'Comment' text area in the edit tab, you should remove it simply by overriding the template document_edit.xhtml (in nuxeo.war/incl/tabs) by your own file.

You just need to comment lines below:

 <table class="dataInput">
     <td class="iconColumn" style="vertical-align:top;" />
     <td class="labelColumn">
       <h:outputText value="#{messages['label.comment']}" />
     <td class="fieldColumn">
       <h:inputTextarea value="#{currentDocument.contextData['request/comment']}" />

Else if you don't want override the default template a proper way IMO is to create your own layout (see like this you keep the default behavior when you upgrade your version of Nuxeo.

1 votes