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

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

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

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.I want to remove url link for Document screenshot(4).png. So that no users can view documents details page of it.I want to remove url link for Document screenshot(4).png. So that no users can view documents details page of it.

6 Replies
Highlighted
Moderator
Moderator

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

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

 

Highlighted
Member II

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

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.

Highlighted
Moderator
Moderator

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

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

Highlighted
Member II

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

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.

 

Highlighted
Moderator
Moderator

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

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

Senior Member II

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

Hi,

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

Thanks & Regard,
Sanjay