February 11, 2010

Open A Document in new Window from Document Library

If you want only documents in one document library to open to new windows, you can edit the document library in SharePoint Designer.

1. Open the site in SharePoint Designer and then open the document library allitems.aspx.

2. Right-click the document library web part and select “Convert to XSLT data view”.

3. Search for "Onlink" and you will see this tag “<xsl:otherwise ><A onfocus="OnLink(this)" HREF="{@FileRef}"….. </xsl:otherwise>”, .....add “target="_blank"” in <A> tag.

After this, the documents will be opened in a new window.

No comments:

SonarQube with Jenkins Setup using Docker Images

https://funnelgarden.com/sonarqube-jenkins-docker/  https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...