Sitecore模板字段源从两条路径拉出来?

时间:2016-10-27 13:43:24

标签: sitecore sitecore6

在我去年继承的Sitecore网站中,我们有一个内容项,用于显示从路径中提取的rss字段,并从该路径中抓取内容项。我们有一些这样的,现在他们想要从所有位置获得额外的馈送。该字段是一个模板源字段,它表示它可以采取Sitecore查询。我正在尝试创建一个从多个路径中提取项目的查询,但是当我使用它时它会告诉我生成的提要是空的。我似乎无法找到任何在线参考,其中有一个查询示例来自两个完全独立的位置。当我尝试使用内容根并指定模板名称或ID的过滤器时,它似乎也不起作用...

我尝试过的一些例子:

/ sitecore / content / Home / ** [@ templatename ='新闻文章'](空)

查询:/ sitecore / content / Home / ** [@ templatename ='新闻文章'](Feed未正确配置)

/ sitecore / content / Home / Health / HArticles和/ sitecore / content / Home / About / MediaCenter / News / Archives(empty)

查询:/ sitecore / content / Home / Health / HArticles and query:/ sitecore / content / Home / About / MediaCenter / News / Archives(查找源无效)

查询:(/ sitecore / content / Home / Health / HArticles and query:/ sitecore / content / Home / About / MediaCenter / News / Archives)(查找源无效)

查询:(/ sitecore / content / Home / Health / HArticles / *和query:/ sitecore / content / Home / About / MediaCenter / News / Archives / *)(查找源无效)

查询:(/ sitecore / content / Home / Health / HArticles / **和query:/ sitecore / content / Home / About / MediaCenter / News / Archives / **)(查找源无效)

/ sitecore / content / Home / Health / HArticles / *和/ sitecore / content / Home / About / MediaCenter / News / Archives / *(empty)

1 个答案:

答案 0 :(得分:2)

我终于通过指定模板名称来查询:query:/ sitecore / content / Home // * [@@ TemplateName ='新闻文章']