Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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

share|improve this answer
    
@Tim... so simple, yet so many hours!! –  gotsp May 5 '11 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.

share|improve this answer
    
@Anders.... are you missing a word up there "render, using the ???" –  gotsp May 5 '11 at 7:14
    
updated answer! –  Anders Rask May 5 '11 at 7:21
    
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 '11 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 –  Anders Rask May 5 '11 at 7:55

Your Answer

 
discard

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.