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
This page is built using aikau, you need to extend the results page to add additonal attributes to the links.
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.