【问题标题】:SharePoint 2013 Content Query Web Part 4 FilterSharePoint 2013 内容查询 Web 部分 4 筛选器
【发布时间】:2019-07-26 22:12:01
【问题描述】:

我有以下代码片段来过滤内容查询 WebPart 中的博客帖子。我们需要的不仅仅是 Sharepoint 中已经给出的 3 个过滤器,所以我使用 CMAL-Query 进行了尝试。 但是当我将 WebPart 添加到我的 SP 页面时,过滤器不适用。任何建议如何更改代码?

帖子应按类别过滤。

 <property name="QueryOverride" type="string">
                <![CDATA[
                <where>
                    <or>
                        <or>
                            <Eq>
                                <FieldRef Name='PostCategory' />
                                <Value Type='Text'>test4</Value>
                            </Eq>
                            <Eq>
                                <FieldRef Name='PostCategory' />
                                <Value Type='Text'>test5</Value>
                            </Eq>
                        </or>
                        <or>
                            <Eq>
                                <FieldRef Name='PostCategory' />
                                <Value Type='Text'>Ideen</Value>
                            </Eq>
                            <Eq>
                                <FieldRef Name='PostCategory' />
                                <Value Type='Text'>Meinungen</Value>
                            </Eq>
                        </or>
                    </or>
                </where>
            ]]>
            </property>

【问题讨论】:

    标签: sharepoint-2013 cqwp


    【解决方案1】:

    NVM。

    我发现了我的错误。使用 U2U Caml Builder 现在一切都按预期工作了。

    【讨论】:

      猜你喜欢
      • 2013-09-23
      • 1970-01-01
      • 2014-07-08
      • 2014-12-04
      • 1970-01-01
      • 1970-01-01
      • 2010-09-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多