cancel
Showing results for 
Search instead for 
Did you mean: 

remove panel workflow from document details in alfresco 5

iamri
Confirmed Champ
Confirmed Champ

I would like remove some panels from document details page of Alfresco Share. I'm using Alfresco Community 5.2 version.

in document share/WEB-INF/classes/alfresco/site-data/template-instances/document-details.xml i comment this lines 

<!-- Document Workflows -->
 <component>
<region-id>document-workflows</region-id>
<url>/components/document-details/document-workflows</url>
<properties>
<nodeRef>{nodeRef}</nodeRef>
</properties>
</component> 

but this is not working.

can you help me please?

1 ACCEPTED ANSWER

Hi

In-order to remove specific action to appear on UI, you need to configure it in share-config-custom.xml. See the following sample to disable 'Upload New Version' action. Similarly you can configure default disableAction evaluator for action you don't need.

<config evaluator="string-compare" condition="DocLibActions">   <actions>      <action id="document-upload-new-version">          <evaluator>evaluator.doclib.action.disableAction</evaluator>      </action>   </actions></config>

In-order to understand more options for share-config-custom.xml, refer this link Override and extension examples | Alfresco Documentation 

Hope this will help!

View answer in original post

4 REPLIES 4

kalpesh_c2
Star Collaborator
Star Collaborator

Follow the step given in below link:

https://community.alfresco.com/community/ecm/blog/2011/11/09/add-remove-or-replace-components-on-sha... 

This link have example of how to add or remove panel in document detail page.

As per above link create xxxx_extension.xml file and put below code.

<extension>
   <modules>
      <module>
         <id>TEST</id>
         <version>1.0</version>
         <auto-deploy>true</auto-deploy>
            <components>
               <component>
                  <scope>template</scope>
                  <region-id>document-workflows</region-id>
                  <source-id>document-details</source-id>
                  <sub-components>
                     <sub-component id='default'>
                        <evaluations>
                           <evaluation id='acme-test-removeWorkFlow'>
                              <render>false</render>
                           </evaluation>
                        </evaluations>
                  </sub-component>
               </sub-components>
            </component>
         </components>
      </module>

   </modules>
</extension>

Thanks,

Kalpesh

Contcentric

thank you for your reply
the workflow function does not work but it still appears

I do not want this function to appear

thanks.

cordially 

imene.

Hi

In-order to remove specific action to appear on UI, you need to configure it in share-config-custom.xml. See the following sample to disable 'Upload New Version' action. Similarly you can configure default disableAction evaluator for action you don't need.

<config evaluator="string-compare" condition="DocLibActions">   <actions>      <action id="document-upload-new-version">          <evaluator>evaluator.doclib.action.disableAction</evaluator>      </action>   </actions></config>

In-order to understand more options for share-config-custom.xml, refer this link Override and extension examples | Alfresco Documentation 

Hope this will help!

it's good it works perfectly
thanks a lot for your help