【问题标题】:RSS feed items tags not recognizedRSS 提要项目标签无法识别
【发布时间】:2013-12-18 05:12:27
【问题描述】:

我正在尝试为播客设置 RSS 提要。我正在为此使用 Drupal 和 Views RSS 模块,但我认为它不相关或我的问题的根源。

我的问题是提要验证器 (CastFeedValidator) 无法识别我的 <item> 元素。它说我有 0 个项目,而同一站点上的另一个提要(不是播客)工作正常。

非工作提要 (http://www.gentlesite.be/drupal/podcast.xml) 具有以下 <item> 元素(例如已清理):

<item> 
    <title>Tweede podcast - test</title>
    <link>http://gentlesite.be/drupal/content/tweede-podcast-test</link>
    <description>&lt;p&gt;Enkel zichtbaar voor admin&lt;/p&gt;</description>
    <author>Peter Morlion</author>
    <enclosure url="http://gentlesite.be/drupal/sites/default/files/1000Hz-5sec.mp3" length="30440" type="audio/mpeg" />
    <guid isPermaLink="false">http://gentlesite.be/drupal/content/tweede-podcast-test</guid>
    <pubDate>Mon, 02 Dec 2013 12:37:12 +0100</pubDate>
    <source url="http://gentlesite.be/drupal/podcast.xml">Gentle podcast</source>
    <dc:creator>Peter Morlion</dc:creator>
    <itunes:summary>&lt;p&gt;Enkel zichtbaar voor admin&lt;/p&gt;</itunes:summary>
    <itunes:duration>0:05</itunes:duration>
    <itunes:author>Peter Morlion</itunes:author>
</item>

工作提要 (http://gentlesite.be/drupal/rss.xml) 如下所示:

<item>
    <title>Resultaten nieuwsbrief enquête</title>
    <link>http://gentlesite.be/drupal/content/resultaten-nieuwsbrief-enqu%C3%AAte</link>
    <description>blablabla</description>
    <pubDate>Tue, 15 Oct 2013 07:49:18 +0000</pubDate>
    <dc:creator>peter.morlion</dc:creator>
    <guid isPermaLink="false">353 at http://gentlesite.be/drupal</guid>
</item>

我不明白为什么第一个不起作用。起初我认为这可能是因为某些标签丢失了。但是工作提要中的每个标签(标题、链接、描述、pubDate、dc:creator 和 guid)都处于非工作状态,等等。

有没有人经历过类似的事情和/或知道从哪里开始寻找?

更新

由于某种原因,validator.org 没有看到项目标签。 Firefox 和 Chrome 可以,但 IE10 没有。

【问题讨论】:

    标签: drupal rss itunes drupal-views


    【解决方案1】:

    嗯哼,没关系。经过长时间的搜索,它终于击中了我。我正在使用访问控制模块对未经授权的用户隐藏这些项目。提要验证器不是授权用户,因此 Drupal 不会显示它们。所以一切都很完美。我没有在 IE10 中看到它们的原因是因为我没有在 IE10 中登录。我在 FF 和 Chrome 中登录。 (拍了拍额头)

    【讨论】:

      猜你喜欢
      • 2016-08-20
      • 1970-01-01
      • 2014-11-02
      • 1970-01-01
      • 2022-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多