Answered by:
Links to open in a new tab

Question
-
I have a Custom list with a hyperlink column, i wan't to open the links from that list in a new tab. Is that possible?
//Jesper
Wednesday, October 13, 2010 6:11 PM
Answers
-
It's possible, but it's not a matter of just turning it on.
Solutions include:
- Add custom javascript into the page via a content editor web part
- Create a custom site definition and modify the SCHEMA.XML using CAML
- Write a new custom field type (C# code)
I don't have any samples at hand for 2010, but perhaps the other forum members have pointers. Here are some links the solutions mentioned above implemented in SharePoint 2007, they'll give you rough idea of the work involved. Since they relate to older versions of SharePoint they may not work as written.
SharePoint 2007 examples:
Insert JS via CEWP: http://mindsharpblogs.com/Todd/archive/2005/08/16/654.html
Modify schema: http://www.andrewconnell.com/blog/articles/SharepointLinksListOpenInNewWindow.aspx
Custom field type: http://bloggingabout.net/blogs/edwin/archive/2007/03/02/let-sharepoint-link-open-in-a-new-window.aspx
Cheers,
Reeves
-- Program Manager, SharePoint User Experience- Marked as answer by Rock Wang– MSFT Friday, October 22, 2010 7:49 AM
Thursday, October 14, 2010 12:37 AM
All replies
-
You mean to say as target: _blank in asp.net? you want link to be open in new browser or new tab in exising opened browser?
Suman PradhanWednesday, October 13, 2010 6:33 PM -
It's possible, but it's not a matter of just turning it on.
Solutions include:
- Add custom javascript into the page via a content editor web part
- Create a custom site definition and modify the SCHEMA.XML using CAML
- Write a new custom field type (C# code)
I don't have any samples at hand for 2010, but perhaps the other forum members have pointers. Here are some links the solutions mentioned above implemented in SharePoint 2007, they'll give you rough idea of the work involved. Since they relate to older versions of SharePoint they may not work as written.
SharePoint 2007 examples:
Insert JS via CEWP: http://mindsharpblogs.com/Todd/archive/2005/08/16/654.html
Modify schema: http://www.andrewconnell.com/blog/articles/SharepointLinksListOpenInNewWindow.aspx
Custom field type: http://bloggingabout.net/blogs/edwin/archive/2007/03/02/let-sharepoint-link-open-in-a-new-window.aspx
Cheers,
Reeves
-- Program Manager, SharePoint User Experience- Marked as answer by Rock Wang– MSFT Friday, October 22, 2010 7:49 AM
Thursday, October 14, 2010 12:37 AM -
This, along with many other problems and glitches in SP2010, leaves me with the distinct impression that we are beta testing it.
Thursday, May 31, 2012 9:38 AM