01-03-2017 08:35 AM
I'm using Alfresco Community 5.0.d and Alfresco all-in-one sdk for customisation. I am not able to find a way to remove the favorite/like/comment/share from document library.
I followed this How to disable the social plugins (such as following user and ‘like’ document) in Document Library f... but social links are still working.
Please let me know the way to fix it.
Thanks in advance!
01-03-2017 12:03 PM
Hi:
It is better to copy metadata template definitions from share-documentlibrary-config.xml to share-config-custom.xml, to put replace=true in the corresponding Document Library section and to comment the cited social line.
The reference file is share-documentlibrary-config.xml, which is under WEB-INF directory and it should not be changed, while share-config-custom.xml is in Share web-extension directory.
$ALF_HOME/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
Regards.
--C.
01-03-2017 11:37 AM
Hi:
An option is to replace the default metadata template for simple and detailed view in share-config.custom.xml
Maybe this link helps:
- More about quick shared functionality in Alfresco - zylk
Regards.
--C.
01-03-2017 11:44 AM
Well, I think it is the same tip. This should work for Alfresco 5.0.d
Regards.
--C.
01-04-2017 06:07 AM
this worked like a charm for removing the share (social) button but how to remove other feature including favorite, comments and like option?
01-04-2017 11:10 AM
Hi:
Do you refer in document details page ?
Regards.
--C.
01-05-2017 06:58 AM
In document library and document details, I want to remove the favourite, like and comment feature.
02-07-2018 10:58 AM
Works still on 5.2.2.
Thanks Cesar!
01-03-2017 11:42 AM
As mentioned in post, Have you tried by commenting following line from share-documentlibrary-config.xml file
<line index="50" id="social" view="detailed">{social}</line>
It should work like a charm.
01-03-2017 12:03 PM
Hi:
It is better to copy metadata template definitions from share-documentlibrary-config.xml to share-config-custom.xml, to put replace=true in the corresponding Document Library section and to comment the cited social line.
The reference file is share-documentlibrary-config.xml, which is under WEB-INF directory and it should not be changed, while share-config-custom.xml is in Share web-extension directory.
$ALF_HOME/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
Regards.
--C.
05-20-2020 05:02 AM
Hii @cesarista ,
This change for document library work perfectly fine and removes like, favourite, comment but is that any way to remove it from Document details as when i click on any document it still have this inside document details.
Thanks,
Piyush
Explore our Alfresco products with the links below. Use labels to filter content by product module.