SharePoint Content Query Web Part Open New Window

I have five solutions, most of which involve code. The first solution is probably the easiest for you:

First solution
These MSDN articles tell you how to modify ItemStyle.xsl and add your own CQWP style to it (http://www.microsoft.com/belux/msdn/nl/community/columns/stevenvandecraen/contentquerywebpart.mspx, http://msdn.microsoft.com/en-us/library/bb447557.aspx) You should be able to override the code which displays hyperlinks and insert target=”_blank”.

Second solution
This link to Heather Solomon is helpful also http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx

Third solution
The next suggestion is to use javascript to find all links in the Content Query Web Part and set their targets after the page has loaded. Probably an icky solution for you but possible.

Forth solution
You might use Visual Studio to create a webpart which inherits from the Content Query Web Part and writes all hyperlinks with new browser targets. See google.

Fifth solution
My last suggestion is to get something like the Enhanced Content Query Web Part and see if that will do it for you (http://www.codeplex.com/ECQWP)

Diganta Kumar is an experienced Technical Program Manager with a passion for technology. He has architected and developed software for over a decade for a broad range of industries. Diganta is a founder of two online IT businesses. He likes to help, mentor, and manage software development teams to improve and produce great software. He currently works as a Principal Program Manager for Microsoft. Before joining Microsoft, he was with AWS for five years, where he managed large cross-functional programs on a global scale.

Tagged with:
Posted in SharePoint
One comment on “SharePoint Content Query Web Part Open New Window
  1. Thanks designed for sharing such a fastidious thought, piece of writing is
    nice, thats why i have read it completely

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: