How to remove favorite/like/comment/share from document library?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Established Member

How to remove favorite/like/comment/share from document library?

Jump to solution

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!

1 Solution

Accepted Solutions
Highlighted
Customer

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

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.

View solution in original post

12 Replies
Highlighted
Customer

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

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.

Highlighted
Established Member

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

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.

Highlighted
Customer

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

Well, I think it is the same tip. This should work for Alfresco 5.0.d

Regards.

--C.

Highlighted
Customer

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

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.

View solution in original post

Highlighted
Established Member

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

this worked like a charm for removing the share (social) button but how to remove other feature including favorite, comments and like option?

Highlighted
Customer

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

Hi:

Do you refer in document details page ?

Regards.

--C.

Highlighted
Established Member

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

In document library and document details, I want to remove the favourite, like and comment feature.

Highlighted
Established Member

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

Works still on 5.2.2.

Thanks Cesar!

Highlighted
Active Member II

Re: How to remove favorite/like/comment/share from document library?

Jump to solution

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,

PiyushThere is still like favourite and commentThere is still like favourite and commentThere is no like favourite and comment in document libraryThere is no like favourite and comment in document library