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)

Advertisements

Diganta Kumar has architected and developed software for more than a decade for a wide range of industries and development platforms and over the years has filled many roles including program manager, founder, developer, architect, team lead, mentor and project manager. Diganta is founder of two online IT businesses. He is a certified AWS Solutions Architect, certified Professional Scrum Master (PSM I), certified Professional Scrum Developer (PSD I) and ITIL Certified. He has presented at Microsoft Tech.Ed, Microsoft AppFest and Ark Group Intranet conference. He attends AWS Seattle Official Events, Seattle AWS Architects-Engineers, and AWS Cloud Commerce user groups. He likes to help, mentor and manage software development teams to improve and produce great software. He currently work as a Senior Technical Program Manager for Amazon Web Services.

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 )

Google+ photo

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

Connecting to %s