I have added the Content Query Web Part to my page.

I've hooked it up to a custom list that I've added a Url column to.

The list is displaying on my page, but the link goes to the list item properties page, not to the url column within the list.

I assumed it would be straight forward to change the functionality to link to my url column instead, but I've not been able to do so.

I'm updating the following section, and I get this error message

"Url is not a valid hyperlink field or URL Path. Leave the field blank to automatically generate a link to the view properties form of the returned items."

enter image description here

I have confirmed that Url is the internal name of a column in the list I'm linking to. Also the contents of the Url column are all http://www.google.com/1

How can I link to my url column in the Content Query Web Part?

3 Answers 3


Ensure the URL column is created as a hyperlink type, not as a string, and then populated with a URL.

  • @Tim... so simple, yet so many hours!!
    – gotsp
    May 5, 2011 at 22:33

Check out this article. It shows you how to replace the fields you want to render, using the "fields to display" section.

Another article from MSDN here and here.

  • @Anders.... are you missing a word up there "render, using the ???"
    – gotsp
    May 5, 2011 at 7:14
  • thanks I've updated my question to be a bit more specific... that was the area I've been playing around with, but wasnt sure... and wasnt getting it to work.
    – gotsp
    May 5, 2011 at 7:38
  • The field is using display names. I guess this is to make it easier for end users (designers) to add fields. Try with the display name for URL May 5, 2011 at 7:55

The solution we found for this is to use the field name FileRef. If you apply the change, the Link field will reset to Name (linked to document), but the fileref change should stick, regardless.

Apparently, FileRef is the internal field name for the URL field.
How Microsoft expected anyone to work this out for themselves is anyone's guess!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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