1

I m not using Drupal 7 with its default way. I don't publish in front page, since I use a view for the front page. I produce an RSS feed from a view.

How I can make the RSS icons appear at browsers' address bar?

2 Answers 2

1

If you have a custom module, you can use drupal_add_feed, should work for both D6 and D7:

function CUSTOM_preprocess_page(&$vars) {
  drupal_add_feed(url('path/to/feed'), 'Feed Title');
  $vars['head'] = drupal_get_html_head();
}
1
  • Hello Tostinni, I am new to Drupal API, can you tell me where to put this code and where to call it? Thanks!
    – znat
    Jun 3, 2012 at 13:12
0

You have to attach the feed to the page display.

It's an option in the feed configuration.

1
  • I understand what you mean, but the problem is that i don't have a page view on it. It is just a feed/rss view and I want its icon be sitewide.
    – john
    May 26, 2011 at 1:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.