Home / Developer Tools / Documentation / ASU Best Practices / ASU Drupal Best Practices: Sharing Data via RSS

ASU Drupal Best Practices: Sharing Data via RSS

The following guidelines are provided for developers using Drupal to implement RSS feeds in a web site.

  • ASU news and ASU Events should be centralized resources for content sharing on college/dept/program sites. (standard)
  • Sites sharing content through RSS should decide on a standard set of tags for all of ASU content.

Recommended modules:

Create a new content-type to receive data from RSS. Taxonomy (if applicable) - create new taxonomy to consume tags from incoming RSS feed. Create new feed (coming into the site)

  • Import data into new content-type, creates nodes locally
  • Refresh on cron
  • If archiving content on local site: Never delete old nodes
  • Tags - bring in terms to vocabulary

RSS/XML Feed should contain the following feed data at the top: <?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Your School Name Here</title>
<link>http://yourschoolname.asu.edu</link>
<description>Description of your school feed</description>
<language>en</language>