MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

SP2010 question about Edit Hyperlinks Properties

  Date: Sep 17    Category: MOSS    Views: 827

we are using MOSS for web content mgt (publishing site). There is a
discussion about when we migrate our content to 2010 if the Edit Hyperlinks
Properties will be any different. E.G. When you link to a MS Word document in a
list, you don't have the option of changing the target to _blank in MOSS 2007.
We are curious if there is any change in this practice?



3 Answers Found

Answer #1    Answered On: Sep 17    

As I understand it, you will still need some form of customization to open
links in a new window.

One method would be to install jQuery and then add the following JavaScript
code (or something like it) to the relevant view page:

$("a[onfocus='OnLink(this)']").attr("target", "_blank")

Answer #2    Answered On: Sep 17    

well 1) would that work if the link was
in a list? and 2) since this would effect all of the links on a given page this
would open every link in the list (or not) in a new window?

Answer #3    Answered On: Sep 17    

The code below is designed for links in a list. They are displayed with
the specified onfocus attribute, so it's easy to make jQuery home in on just
those links. This should bypass all other links on the page and if there
others that get affected, it should be easy to find distinguishing
attributes about the superfluous links and adjust the criteria below.

Didn't find what you were looking for? Find more on SP2010 question about Edit Hyperlinks Properties Or get search suggestion and latest updates.