Hi,
I have a document library web part added to our homepage and we would like the folders inside that document library web part to point to a new window when clicking on them. I want it to open to its respective document library page. Can this be done?
I checked online and found this script but it's not working. It's only opening the folder to a new window but it's pointing to the document library page.
function HandleFolder(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) {
var parts = new Array();
parts = c.toLowerCase().split('%2f');
//Change SitePages/Home.aspx with your homepage url
c = c.replace('SitePages/Home.aspx',parts[1]);
window.open(c);
return false;
}
Can anyone advise?