0

I have been trying to find resources to describe how I can bring in column names into a content query web part. I understand how to add additional columns by modifying the itemstyle.xsl and query web part files and have successfully brought in additional columns into my results. What I am seeking is a way to "label" those results.

Example: Using the CQWP to display items from a contacts list.

Columns like: Site, Address, Manager

CQWP is correctly displaying the values of each of the columns, but not giving me the option to also show the column name.

Results:

Property A

123 Main Street

Sally Smith

I'd like to have the results displayed like this:

Site (column name)

Property A

Address (column name)

123 Main Street

Manager (column name)

Sally Smith

Any assistance to point me in the right direction would be greatly appreciated.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.