Hi,

I'm used to feeds that open in browsers so for example I could use the URL in a feed reader. I was wondering why the drupal feeds on my site are downloadable and how they are meant to be used. When I click on a feed icon my browser asks where I want to save it, but i'm not sure why this is and why it doesn't open in a browser like some of my other sites do?

Any explanation would be great, thanks.

Comments

dempseyj’s picture

What browser are you using? As Firefox (2.0 at least) automatically asks to save them whereas IE will open them up in the screen.

carlmcdade’s picture

since version 4.7 the xml document is no longer readable in the web browser. The proper header is not sent. So the browser downloads to a temp file in most cases. So a feed reader is the only way to accesses the feed.

This is either a bug or security feature. You choose ;)

I personally don't like it because I like to style the feed page so it looks nice you can't do this in the default install.

Hiveminds Magazine
http://www.hiveminds.co.uk
for web publishers and community builders CMS Demo Matrix
Coming soon!Drupal Support | Drupal S

Jboo’s picture

Ah, ok, that's annoying because many of my visitors may also be in the same position and not know what to do with them. It seems to want to download in both FF and I.E. Looks like i'll have to write a page explaining how to use feeds on my site.

Thanks for the replies.

My new EasySnoozing, Nursing and BusinessEgghead websites on D7!

carlmcdade’s picture

You can also do this. Use CSS to hide the links to the Drupal feeds. Create new feeds from the links using feedburner.com and then post links to the new feeds in your footer or template files. This way clicking on a feed link will take them to a nice feedburner page.

Unfortunately Drupal has feeds all over that are based on url. So taxonomy feeds and the like will be a pain to do this with. So thing like this is a clear call to hack the core code if you want perfection.

Hiveminds Magazine
http://www.hiveminds.co.uk
for web publishers and community builders CMS Demo Matrix
Coming soon!Drupal Support | Drupal S

Jboo’s picture

See what you mean, it definitely will be a pain to do this with my site as I have hundreds of categories, i'll just have to leave as is at the moment and look into having someone hack the code in the future.

Thanks for your help.

My new EasySnoozing, Nursing and BusinessEgghead websites on D7!

taggartj’s picture

I head the same problem and my site is using so many modules its not funny !
however have a look at your normal theme source if you see 1 blank line before the
"<!DOCTYPE html PUBLIC "-//W3C/...."
then you have the problem!

to fix Try some or all of the following ...

1) looking at your theme (page.tpl.php ) ect ...
2) try switching themes to a default theme
3) look at any (custom / extra ) modules you or someone has made for the site ..remember even random open and close php tags are bad ! such as :

<?php
function somemodmenu_menu_alter(&$items) {
  $items['user']['type'] = MENU_CALLBACK;
  $items['user/register']['type'] = MENU_CALLBACK;
  // Example - disable the page at node/add
  // $items['node/add']['access callback'] = FALSE;
}
/// feed KILLER Sloppy code 
?>

<?php
/**
* Implementation of hook_help().
*/
function somemodmenu_help($path, $arg) {
  switch ($path) {
    case 'admin/modules#description':
      return t('Makes login block collapsible');
  }
}.................
?>

4) try to back track your other good module installations (make a copy of your site and current db first !!! ) then start turning off modules ...and testing after clearing cashes...

... if then you still can't fix it try fresh core / module install and install db and theme
or just run away screaming in to the night