Showing posts with label New Window. Show all posts
Showing posts with label New Window. Show all posts

Friday, June 25, 2010

Making SharePoint Links Open in a New Window

Out of the box, Sharepoint Links lists don't give you the ability to open links in a new window (i.e. no access to the "target" attribute of the link). But a quick SharePoint Designer (or FrontPage) trick can fix that.

If you need your links in a Links list to open in a new window, you can do the following:

- Open the view document for the list in Sharepoint Designer (e.g. /Lists/Links/AllItems.aspx)
- Right-click on the List View Web Part (WebPartPages:ListViewWebPart) and Click on the option that says, "Convert to XSLT Data View"
- Right-click on the text of one of the links and choose "Hyperlink Properties"
- Click the "Target Frame" button on the right and pick "New Window"
- Click OK and then OK!
- Save the document

You'll notice that this is an all-or-nothing fix: all present and future links on this page will open in a new window.