Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Open Folders in Document Library to new Window

$
0
0

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?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>