locked
CQWP - Userfield display RRS feed

  • Question

  • Hi,

    I have a List with column of type "Username with picture". I would like to show this user and the picture in a content query webpart. However, all I am able to show is the username. Is there any way I can show the image as well??


    Sharepoint Dummy
    Tuesday, November 15, 2011 12:27 PM

All replies

  • You will have to export the cqwp, add the field to the common fields property and then create an XSL template within ItemStyles.xsl to format how the picture is to display with the rest of the content.

    See Heather Solomon's article on this for more detail.

    http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx

    Hope this helps.

    Tuesday, November 15, 2011 9:59 PM
  • Open the site in SharePoint designer .Create a new  style templete for content query webpart.

    Wednesday, November 16, 2011 6:31 AM
  • Hi Thilosh, SLF05,

    Thanks for that. I apologise that my question was not clear enough. I know that we have to edit the ItemStyle.xsl to change the content query view styles. I need to know how exactly the "Image" of a user can be displayed based on the userfield.


    Sharepoint Dummy
    Wednesday, November 16, 2011 10:39 AM