cancel
Showing results for 
Search instead for 
Did you mean: 

Open document in new tab in browser

alfresco_lover
Champ on-the-rise
Champ on-the-rise

Hi everybody,

The think is: I searched document via search browser. After searching it I get this:image

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 2

abhinavmishra14
World-Class Innovator
World-Class Innovator

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
Confirmed Champ
Confirmed Champ

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