08-02-2022 04:24 AM
Hi everybody,
The think is: I searched document via search browser. After searching it I get this:
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
08-08-2022 02:27 PM
This page is built using aikau, you need to extend the results page to add additonal attributes to the links.
08-22-2022 12:38 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.