简体   繁体   English

模块来解析Drupal中的RSS feed?

[英]Module to parse RSS feed in Drupal?

I'm trying to simply display an RSS feed as part of my site. 我试图将RSS feed作为网站的一部分显示。 A user will put in an RSS URL into a CCK field and I want to take that URL and display the latest RSS results. 用户会将RSS URL放入CCK字段中,而我想使用该URL并显示最新的RSS结果。

I assume there's a module for this but I can't seem to find it. 我假设有一个用于此的模块,但是我似乎找不到它。

http://drupal.org/project/feeds will do this and a lot more. http://drupal.org/project/feeds将执行此操作以及更多操作。

Here's a good video to get started 这是一个很好的入门视频

http://developmentseed.org/blog/2009/dec/15/importing-and-aggregating-stuff-feeds http://developmentseed.org/blog/2009/dec/15/importing-and-aggregating-stuff-feeds

Regarding your request about integrating with CCK, I don't know how you can do that but that may not be necessary because the feed URL is entered through a dialog of its own. 关于您有关与CCK集成的请求,我不知道您该怎么做,但这可能不是必需的,因为Feed URL是通过其自身的对话框输入的。 And you can always add other CCK fields to the Feeds Content type. 而且,您始终可以将其他CCK字段添加到Feed内容类型。

我最终使用了simplepie模块,并使用了其中包含的函数simplepie_get()

The main feed aggregators are the the core aggregator module, feedAPI module, and the newer feeds module. 主要的feed聚合器是核心聚合器模块, feedAPI模块和更新的feeds模块。 I'm not sure any of them are set up to integrate with CCK in quite the way you're describing. 我不确定它们中的任何一个是否已设置为以您描述的方式与CCK集成。 I suspect that will require some custom development. 我怀疑这将需要一些自定义开发。

If you don't need the feed data in the Drupal database, you could use a javascript library to bring in the feeds on the client side. 如果您不需要Drupal数据库中的提要数据,则可以使用javascript库在客户端引入提要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM