remove panel workflow from document details in alfresco 5

cancel
Showing results for 
Search instead for 
Did you mean: 
iamri
Active Member II

remove panel workflow from document details in alfresco 5

Jump to solution

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 Solution

Accepted Solutions
jayesh_prajapat
Established Member

Re: remove panel workflow from document details in alfresco 5

Jump to solution

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 solution in original post

4 Replies
kalpesh_c2
Senior Member

Re: remove panel workflow from document details in alfresco 5

Jump to solution

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

iamri
Active Member II

Re: remove panel workflow from document details in alfresco 5

Jump to solution

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.

jayesh_prajapat
Established Member

Re: remove panel workflow from document details in alfresco 5

Jump to solution

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!

iamri
Active Member II

Re: remove panel workflow from document details in alfresco 5

Jump to solution

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