SharePoint 2010 – Content Query Web Part – Open Links in new window

יום שלישי, מאי 3, 2011

Content Query Web Part is very useful Web Part that allow show relevant data from defferent sources by definition special filter conditions.  But when relevant data is rendered all link are opened in the same window. You can change this behavior by changing ItemStyle.xsl that placed in "Style Library" library inside "XSL Style Sheets" folder. You can navigate to this library: http://servername/Style%20Library. For changing ItemStyle.xsl file, download it to local disk. For example if you use "Default" style inside Content Query Web Part, you can duplicate  xsl:template part with name "Default"  and change style name for example "DefaultNewWindows". Inside this template you can add new attribute"target"...