SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a CQWP which queries a Meetings calendar.

It groups the contents by month in date order and displays these columns: Meeting Date, Start Time, Meetings Title and Location.

I would like the Meetings Title to link to the workpace for the meeting.

Does anyone know how to do that?

share|improve this question

You need to customise the ItemStyle XSL for the CQWP, and manually tie your CQWP webpart instance to your customised ItemStyle. You will also need to add WorkspaceLink to the CommonViewFields property in the webpart instance.

When you're editing the ItemStyle, you should be able to simply do this:

 <xsl:value-of select="@WorkspaceLink" />

To get the url to the Workspace.

So, step by step:

Add a CQWP to your page and wire it up to the list.

Export it (so it downloads as a .webpart file).

Add WorkspaceLink to CommonViewFields.

Copy ItemStyle.xsl in the site's Style Library and rename it to something like MyItemStyle.xsl.

Make the changes in the appropriate itemstyle template such that it renders your workspace link.

Upload your customised ITemSyle to the Style Library.

Go back to the .webpart file and modify the ItemStyleLink property so that it points to your new itemstyle file in the style library.

Import your edited CQWP webpart file into your page and add it.

Have a Google around for "Customising Content Query Web Parts", "customising ItemStyle" and "CommonViewFields Content Query Web Part" for more info.

share|improve this answer
up vote 0 down vote accepted

I've found an easy solution for this. Add a CQWP and set the URL to WorkSpaceURL. Sorted!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.