cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove link of a Document so that user cant see the Document Details Page,

P_Projects
Champ in-the-making
Champ in-the-making

Hello All,

I want to remove the link associated with the Document so that it cant get user to the document details page.

I am providing  image for a guidelines of what i exactly needs.imageI want to remove url link for Document screenshot(4).png. So that no users can view documents details page of it.

6 REPLIES 6

abhinavmishra14
World-Class Innovator
World-Class Innovator

What link you want to remove/disable, screen shot doesn't highlight it. Link on nodes itself or links (actions) on right side menu ?

If you are looking to hide actions based on some conditions, have a look at this docs:

https://docs.alfresco.com/6.1/concepts/doclib-predefined-evaluators-reference.html

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-evaluators.html

If you are looking to disable the link on node itself, then you have to extend the document library. 

Have a look at this docs which may help you on extending doclib:

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-surf-extension-modules.html

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-override-ootb-surf-webscripts.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Hi @abhinavmishra14 ,

I want to remove screenshot(4).png URL. So that Users cant see the Document details page of it.

Please guide me through it.

Thanks.

For second option, i already provided links above. Copying again here:

If you are looking to disable the link on node itself, then you have to extend the document library. 

Have a look at this docs which may help you on extending doclib:

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-surf-extension-modules.html

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-override-ootb-surf-webscripts.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Hi @abhinavmishra14 ,

I got your point but what webscript i should add to remove that link from node and what should be my Source package root and target package root in customizartions.

Thanks.

If you go further down in the docs, you would see an example of invite page which demonstrate how to find the webscript and package and how to enable tool for looking at the details.

See here : 

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-surf-extension-modules-introduction.html

SurfBug:

https://docs.alfresco.com/6.1/concepts/dev-extensions-share-surfbug.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

Hi,

You need to override documentlist-view-detailed.js file to remove link from file/folder name.