문제

I can create a CQWP for the Announcement content type, but when I export the .webpart and add

<property name="CommonViewFields" type="string">Expires,Date;Body,text</property>

In my ItemStyles.xsl I have added this to show all the returned fields

<xsl:template name="ShowXML" match="Row[@Style='ShowXML']" mode="itemstyle">
    <xsl:for-each select="@*">
        <br />
        Name: <xsl:value-of select="name()" />
        <br />Value:<xsl:value-of select="."  disable-output-escaping="yes"/>
    </xsl:for-each>
</xsl:template>

But Body always comes back blank.

I have two site collections; one to test and one for production. The Test collection works and returns the body of the announcement, but the Production does not.

What should I be looking for? What could I have customized?

Our admin does not yet have the latest service pack installed, nor do I get much of anything out of them support wise.

도움이 되었습니까?

해결책 2

Ended up using the Stramit Caml Viewer. What I learned was that at some point the "Body" field I was looking for had been renamed, and the viewer showed me the correct field to be asking for.

다른 팁

instead of

Expires,Date;Body,text

try

Expires,Date;Body,Note

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top