05-03-2018 03:29 AM
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?
05-07-2018 02:45 AM
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!
05-05-2018 02:43 AM
Follow the step given in below link:
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
05-06-2018 04:15 AM
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.
05-07-2018 02:45 AM
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!
05-07-2018 09:16 AM
it's good it works perfectly
thanks a lot for your help
Explore our Alfresco products with the links below. Use labels to filter content by product module.