Hi all,
i want to add RSS Feed on my Website. i added

<?php print $feed_icon>

but i am able to see RSS feed only on Frontpage, but it's not working with node or blog or other pages.
Drupal has Default functionality, but it's working only for Frontpage . Is there any module for Complete RSS Feed for everything. i already tested commentrss & feedapi. I am not using any Taxonomy term. site map is really confusing. I want to Add RSS Feed for all pages. Is it possible?

Kamlesh Patidar

Comments

nvahalik’s picture

In order to use RSS feeds, you have to have something to syndicate. When you say you want to add it for all pages, do you mean you want the main RSS feed for the site to be present on all pages?

kamleshpatidar’s picture

Thank you very much for Quick reply
you have to have something to syndicate
I am not getting you, what do you want to say? Then for this what i will have to do? Is there any module for this.

do you mean you want the main RSS feed for the site to be present on all pages?

Yes you are right, i wanna to use RSS feed all over the Site, including admin section. All over the site RSS FEED should be present.

Kamlesh Patidar

Jeff Burnz’s picture

Enable the Syndicate Block is the easy way.

If you just want a variable to print then you can set your own in your function phptemplate_preprocess_page(), eg

// set a var to print the rss feed anywhere
$icon = theme('image', 'misc/feed.png', t('RSS Feed'), t('RSS Feed'));
$vars['rss_feed'] = '<a href="'. base_path() .'rss.xml" class="feed-icon">'. $icon .'</a>';

Then in your page.tpl.php

<?php print $rss_feed; ?>
kamleshpatidar’s picture

Hi jmburnz,
Really it was a knowledgeable reply. but unfortunately for me it's not working. i tried both of your ways.

Enable the Syndicate Block is the easy way.

i enabled Syndicate Block in footer. i am getting Rss Icon, but when i click on this, i got only front page in XML format.

phptemplate_preprocess_page(),

I wrote your code in template.php & add <?php print $rss_feed; ?> in page.tpl.php again i couldn't get any fish from Pond. Is there any module or any link, which is really fruitful for me.? Please Share with me.

Kamlesh Patidar

Jeff Burnz’s picture

I see you are using Drupal 5 and not Drupal 6. For Drupal 5 you need to place the code in function _phptemplate_variables

yshh.virmani’s picture

Hi,
Can you please tell me, How to add RSS feed on drupal 7?

xalexas’s picture

I was banging my head how to make your code work. If someone need this for Drupal 6 complete function is (in template.php):

function phptemplate_preprocess_page(&$vars){

// set a var to print the rss feed anywhere
$icon = theme('image', 'misc/feed.png', t('RSS Feed'), t('RSS Feed'));
$vars['rss_feed'] = ''. $icon .'';
}

Then in your page.tpl.php

print $rss_feed;

oldrobb’s picture

I have a similar problem...

My home page feed works fine (www.mywebsite.com/rss.xml) but I thought Drupal provided a feed for any other page at www.mywebsite.com/path-to-node/feed

However, this URL just gives me the same as www.mywebsite.com/path-to-node - i.e. including the template, and in HTML not XML.

Have I misunderstood? How do I get a feed for pages other than the home page?

(I'm also using Drupal 5.)

FumbledReturns’s picture

If I have a site that has multiple users, can each user filter for what he or she wants?

MadTogger’s picture

I am using Drupal 6 and have an RSS icon on the footer but it only links to my home page, I would like a separate feed on each node for it individual content.

How is this done?

Regards..,

K