Tag Archive for 'module'

Drupal RSS Feeds using Feedburner and Views

I recently was given the task of publishing RSS feeds in Drupal to iTunes. My organization does podcasting, and wants the shows to be discoverable using the search feature in iTunes. Using FeedBurner, I was able to manage the feed’s content pretty easily, controlling how it looked in feed readers, including iTunes. One of the shows is published through our Drupal site using the Views module, which gives a lot of options as to how we display it on our website.

The Views module already generates an RSS feed, but I needed that link to get redirected to the show’s FeedBurner page. Using the FeedBurner module for Drupal, this can be done, but I didn’t find very good instructions for doing it when using a feed generated by the Views module. Well, I figured it out, and hope to enlighten someone looking for answers with a quick walkthrough of the process.

Once you’ve set up your View, go into its settings and do the following:

  1. Scroll down to the Arguments section.
  2. Add the following Argument: “Node: Feed Selector”*.
  3. Change the Default dropdown to “Display All Values”.
  4. Save your changes.

Views module settings
The URL of your feed becomes whatever your View’s URL is, with “/feed” tacked on to the end of it.

*A quick note: if you are not redirecting your feed’s URL, use the “RSS: RSS Feed Selector” argument with the same Default value.

Now you can set up FeedBurner using that URL. To redirect it, we will use the FeedBurner module. Go to the module’s settings page (Administer > Site Building > FeedBurner). Click on the “Add feed redirection” link, and fill in the two fields with your local and feedburner URLs.

FeedBurner module settings

I actually had a problem using my local URL at first, because it starts with “?q=”. When I left that part out, the module was able to create the redirection, and it worked fine.

The end. And hopefully you live happily ever after!

Enabling mod_rewrite in Apache2

Oh my gosh, was I having the worst time ever. Apparently, Apache has restructured their configuration files in version 2. To enable a module, you no longer edit the httpd.conf file. Although I had very little experience with the old way of things, most resources on the web were misleading or useless to me. I did eventually find a forum posting with the answers I needed.

In Ubuntu, run the command a2enmod rewrite to enable the rewrite module. It handles everything for you, and then tells you to restart Apache.

Well, even with this module enabled (as well as proxy, which I read was needed to use RewriteRule in an .htaccess file), things still weren’t working.

The fix was editing the file /etc/apache2/sites-enabled/000-default, changing both instances of AllowOverride None to AllowOverride All.

I haven’t had time yet to consider security risks, but at the moment, I’m just running things locally, so getting it working is my only priority.