Open document in new tab in browser

cancel
Showing results for 
Search instead for 
Did you mean: 
alfresco_lover
Active Member

Open document in new tab in browser

Hi everybody,

The think is: I searched document via search browser. After searching it I get this:Výstřižek.PNG

 

Now I would like to open document detials in new tab in browser after clicking on its name.

I know that I need to edit javascript file and add to <a> tag property target="_blank". But I do not know the name of the file to edit. Can somebody help me?

 

Or if there is diferent easier way how to do it I am open to new ideas.

 

Thanks

Alfresco Lover

 

2 Replies
abhinavmishra14
Advanced

Re: Open document in new tab in browser

This page is built using aikau, you need to extend the results page to add additonal attributes to the links. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
ash_saxena10
Partner

Re: Open document in new tab in browser

object-finder.js file that is present at path ${Alfresco_Home_Dir}/tomcat/webapps/share/components/object-finder/object-finder.js . Modify below line to add target="_blank" in link ( method : ObjectFinder_fnRenderCellListItemName )

title = '<a href="' + link + '" target="_blank">' + $html(item.displayName?item.displayName:item.name) + '</a>'; 

Ensure not to modify the OOTB files but override the OOTB file by changing the file through module at path  src\main\amp\web\components\object-finder\object-finder.js

 

Thanks & Regards