posts - 431,  comments - 344,  trackbacks - 0

Views can have RSS feeds so that users can read the items in their news reader as they get added to the view.

  1. enable the "views_rss" module in administer » modules
  2. create or edit a view (under administer » views)
  3. in your view, click on the "Arguments" heading to reveal its settings
  4. under "Add Argument", select "RSS: RSS Feed Selector", then the "Add Argument button"
  5. select the default as "Display All Values"
  6. save the view as usual, or continue creating the view
  7. 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 周锐 阅读(116) 评论(0)  编辑  收藏 所属分类: PHP

只有注册用户登录后才能发表评论。


网站导航: