Thanks!

Sharepoint: Open links in new window

Ok, this is a simple question really.You have a links list, and want the links to open in a new window. Not really best practise, but a common request for external links. (Best practise is of course to let the user decide – just hold down Shift while clicking the link and it opens in a new window). 

The answer can be simple or a little more advanced, depending on how you solve it:

1.#openinnewwindow

 To add #openinnewwindow to the end of the URL is a common suggestion, but it doesn’t work unless you make some JavaScript modifications.

2. Summary Links Web Part

Using MOSS, you say? Well, let the Summary Links Web Part come to the rescue. This web part is included in MOSS. Add this web part to a page and you can easily customze the links.

Summary Link Web Part

The drawback is that you add and edit the links in the web parts itself, it’s not connected to a list – not the Sharepoint way to do it if you ask me. You’ll have to have Design or Contribute permissions to add links that everyone can see.

3. Convert to XSLT Data View

OK, you only have WSS but you have Sharepoint Designer? Well, just open the page where you have a web part showing links from you links list in Sharepoint Designer.

Right-click – Convert to XSLT Data View.

Convert to data view

Now you can right-click a link and set the target to a new window.

Right-click and choose Hyperlink Properties:

Hyperlink properties

Click Target Frame:

Edit hyperlink

Choose New Window:

Target Frame

That’s it! You can also set this as page default if you like.

12 comments to Sharepoint: Open links in new window

  • Victor

    Thank you !
    Finally a simple and useful page that gives the exact solution without tons of useless text and code.

    Regards,
    Victor

  • Tennyson

    Really, really helpful! Convert to xslt gives so many options. Save a copy first, it can create rendering issues.

    Thanks
    Ten

  • John

    Can you tell me how to do this with Sharepoint Foundation 2010 by chance?

  • Ash

    I have a hyperlink column in a list in SharePoint 2010. I need to open the hyperlink to a new window. The data in the list will keep growing. Is there some way to implement some solution on the hyperlink column itself, so that it works for all the data of that column in the list.

  • Jesse

    So i followed the directions(option 3), but the outcome: changes the links for all items in that list to the same URL. I also noticed that this is only working if i am in the page of links, not the web part itself. (moss 2007).. did i miss a step?

  • Hi Jesse
    The procedure in step 3 will only change all links to open in a new window, the links themselves are not changed. If they are, you must have changed (and hardcoded) the value in the “Address:” field.

    Also, you do this on every page where you want the links to display in a new window. E.g. if you do this “in the list” (=with a view in the list), you will only change this view. You have to do this to the web part on the page(s) where you want the links displayed in a new window.

  • @ash: Without having tried myself, maybe a Designer workflow could solve this.

  • Tony

    Thanks for making that so clear with the screenshots.

  • Brian

    I have a hyperlink column in a list in SharePoint 2010. I need to open the hyperlink to a new window. The data in the list will keep growing. Is there some way to implement some solution on the hyperlink column itself, so that it works for all the data of that column in the list.
    ..

  • Roy Jose

    I have uploaded a Webhelp folder (software documentation created with Robohelp) to SharePoint. I want the content to open in the same frame (main content placeholder). By default it opened in full window. I want the sharepoint left navigation pane to be visible always. I was able to make the documentation page open in a new window, leaving sharepoint page in the background. But I want it to look like it is integrated to SharePoint, by opening my page in the same frame. Any help with this?

    Thanks.
    Roy

  • Roy Jose

    I figured it out. I inserted a web part for content viewer and linked my page to it, and it works.

    But my content is not searchable using SharePoint search feature.

    If there is any better way, let me know.

    Cheers!
    Roy

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>