I am trying to add an additional choice to group the items in my Content Query Web Part, specifically a site column I created called "ProductRollup", which is a choice of products. I had already modified the ItemStyle.xsl so that the column displayed when the query was run. The column shows up in DataMappings in the web part code, due to this. Now I just want it to be the field that the Grouping is driven by.
I exported the web part and tried to add the column to the "AdditionalGroupAndSortFields", but when I import the web part back, it gives me an error that the web part is not valid. I am only addingProductRollup</property> to the web part. If I remove that code it imports fine. Is there something wrong with my syntax? I've tried variations, but can't get anything to work.
Excerpt:
<property name="AdditionalGroupAndSortFields" type="string" />ProductRollup</property><property name="UseSQLDataSourcePaging" type="bool">True</property><property name="Height" type="string" /><property name="DataMappings" type="string">productrollup:{ceafdfc9-1857-45a2-8aaa-f13c347c63d2},ProductRollup,Choice;
I am using SharePoint 2013 Online.