Views can have RSS feeds so that users can read the items in their news reader as they get added to the view.
- enable the "views_rss" module in administer » modules
- create or edit a view (under administer » views)
- in your view, click on the "Arguments" heading to reveal its settings
- under "Add Argument", select "RSS: RSS Feed Selector", then the "Add Argument button"
- select the default as "Display All Values"
- save the view as usual, or continue creating the view
- This automatically creates an RSS feed for the view, and adds a feed icon at the bottom of the view. It also enables RSS autodiscovery for that view, so that you can just copy the URL of the view into the news reader (also some browsers will make note of the feed so that you can subscribe to it).
The feed becomes available at whatever the URL is for the view, plus "/feed".
Note: to add CCK fields in addition to the Title and Body fields you should look at the Content Template module.
posted on 2007-11-19 13:46
周锐 阅读(117)
评论(0) 编辑 收藏 所属分类:
PHP