In-ValueProvider 不从 ModuleDataSource 传递数据(博客应用 Mod)

In-ValueProvider not Passing Data from ModuleDataSource (Blog App Mod)

我使用了博客应用程序,在 BlogPost ContentType 中添加了一个类别 ContentType 作为字段,并构建了一个查询以将类别纳入结果。

但是我在使用 In-ValueProvider 时遇到了问题。按照示例 here,Visual Query Designer 似乎忽略了来自我的 ModuleDataSource 的传入值。

我仔细检查了 In-Stream 名称、我的实体名称、案例、TestParameters 等。2sxc 8.44 及更高版本中是否有任何已知错误会导致此问题?我错过了什么?

在这种情况下,我使用的是 RelationshipFilter。关系是 "Category"。过滤器是“[In:Config:Category]”。我可以切换到 [Querystring:Category],它工作正常并运行我的所有代码。

感谢阅读。

好的,我找到了解决方法。

事实证明,In-ValueProvider 正在工作,但它正在努力处理我的 BlogPost 类别 我认为是因为 类别是一个实体。

作为背景,我有一个 BlogPost ContentType、一个 Category ContentType 和一个 Articles Home Header 内容类型。 文章主页 Header 设置文章页面的 header 信息和 类别 实体。

出于某种原因,RelationshipFilter 在比较 Articles Home Header 之间的 Category 实体时遇到问题]博文。我为我的过滤器尝试了以下方法,但都没有用:

[在:配置:类别]

[在:配置:类别:标题]

我想知道这是区分大小写的问题、错误,还是我只是误解了过滤器语法。

为了解决这个问题,我在 Articles Home Header 中创建了一个名为 TempCategory 的临时字段,并使用了 [In:Config :TempCategory] ​​用于过滤器。

有效。

这里是查询的一个片段供参考:

{
  "Config": [
    {
      "Title": "Coaching Articles",
      "SubTitle": "",
      "Image": "/Portals/0/uploadedimages/AcademicPrograms/Christ_College/crosswise-hero.jpg",
      "ImageAlt": "Crosswise stained glass",
      "Category": [
        {
          "Id": 2716,
          "Title": "Coaching"
        }
      ],
      "Id": 3118,
      "Modified": "2016-06-21T10:44:21.9Z",
      "_2sxcEditInformation": {
        "sortOrder": 0
      }
    }
  ],
  "Paging": [
    {
      "Title": "Paging Information",
      "PageSize": 10,
      "PageNumber": 1,
      "ItemCount": 0,
      "PageCount": 0,
      "Id": 0,
      "Modified": "0001-01-01T00:00:00Z",
      "_2sxcEditInformation": {
        "entityId": 0,
        "title": "Paging Information"
      }
    }
  ],
,
  "Default": [
    {
      "Title": "Protect Your Players and Your Program: An Athletic Leader's Legal Duties",
      "UrlKey": "an-athletic-leaders-legal-duties",
      "PublishingGroup": null,
      "PublicationMoment": "2016-06-15T00:00:00Z",
      "Image": "/Portals/0/uploadedimages/AcademicPrograms/Graduate/Coaching/an_athletic_leaders_legal_duty.jpg",
      "ImageSquare": false,
      "Teaser": "<p>When the clock started on the new year earlier this month, all but one state joined the growing legal effort to protect and prevent concussions and head injuries among America&rsquo;s young.</p>",
      "Body": "<p><strong>When the clock started on the new year earlier this month,</strong> all but one state joined the growing legal effort to protect and prevent concussions and head injuries among America&rsquo;s young.</p>\n<p>As sports-related injuries and issues continue to dominate the headlines and influence programs throughout the country, laws like &ldquo;return-to-play&rdquo; are becoming a sign of the times when it comes to protecting players and athletic programs alike. The world of athletics is experiencing a significant shift in the perception of the roles and responsibilities of coaches, schools and athletic personnel.</p>",
      "DesignedContent": [],
      "Tags": [
        {
          "Id": 2576,
          "Title": "coaching"
        },
        {
          "Id": 2575,
          "Title": "management"
        },
        {
          "Id": 2574,
          "Title": "sports"
        },
        {
          "Id": 3035,
          "Title": "legal"
        }
      ],
      "Author": [
        {
          "Id": 3030,
          "Title": "Shaleek Blackburn"
        }
      ],
      "ImageAlt": "Referee holding a red",
      "Thumbnail": "",
      "ThumbnailAlt": "",
      "RelatedArticles": [
        {
          "Id": 2564,
          "Title": "Athletic Personnel's Duty To Warn"
        },
        {
          "Id": 2565,
          "Title": "Get A Better Grip On Bullying"
        },
        {
          "Id": 2717,
          "Title": "Good Coaching Develops Exceptional Athletes and People"
        }
      ],
      "Category": [
        {
          "Id": 2716,
          "Title": "Coaching"
        }
      ],
      "ArticleRelationships": null,
      "Id": 2513,
      "Modified": "2016-06-15T19:32:17.913Z",
      "_2sxcEditInformation": {
        "entityId": 2513,
        "title": "Protect Your Players and Your Program: An Athletic Leader's Legal Duties"
      }
    }  
  ]
}