I am creating a custom Item Style for a Content Query Web Part that I am working on. So far I can get all the information from the different fields, but the Choice type fields are not displaying any information.
Is there any specific handling for this field type? I am working in SP2010.
So far I modified my webpart, to specify the fields in the CommonViewFields property (Meeting as internal column name, Choice type):
<property name="CommonViewFields" type="string">Meeting, Choice</property>
Then in the ItemStyle.xsl I created my custom xsl template:
<xsl:template name="MyStyle" match="Row[@Style='MyStyle']" mode="itemstyle"> <html> <table> <tr> <td><div class="item"><xsl:value-of select="@Meeting" /></div></td> </tr> </table> </html> </xsl:template>
It works for any field type that I have used except Choice. Do I need to modify something else? Thanks.