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'm trying to get and display list columns in the Content Query Web Part. Unfortunatley, some of these column names are like "WEC_ArchiveDate" or "My Categories". So I find the internal SharePoint name and add them in the commonFields section in the CQWP however the data contained in these columns do not appear. (Columns without spaces appear just fine).

What could I be doing wrong?

Bismarck

share|improve this question
add comment

1 Answer

please replace spaces with x0020: http://www.rnowik.com/Converting-sharepoint-display-name-to-internal-name.aspx you can also use SharePoint Manager to see actual internal name of the field: http://spm.codeplex.com/

share|improve this answer
    
Ivan, thanks for the reply but I have already tried that. I am trying to get the column "Issue Date and using the Internal Name of "ISSUE_x0020_DATE". but its not displaying the data. I created a special XSLT template to just dump the XML so I can see what I am getting. –  Bismarck May 24 '11 at 15:33
1  
@Bismarck: Case matters when you are using internal column names. What about Issue_x0020_Date? –  Kit Menke May 24 '11 at 16:47
    
As it turns out, case does matter. Thanks Kit. –  Bismarck May 24 '11 at 17:39
add comment

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.