Justin
Justin

Reputation: 2924

RSS <link> tag not appearing in <head> of Drupal view page display output

I have a Drupal 6 site with a view that has a page and a feed display. Both the page and the feed work great. The view just shows content type Story in reverse chronological order- basic blog listing page.

While the RSS look good, the page display doesn't include the tag in the header for auto-discovery. I've outputting $head in my page.tpl.php, so it should be there. Also, I noticed the $feed_icons variable is empty.

Any ideas?

Upvotes: 1

Views: 1740

Answers (2)

jumpfightgo
jumpfightgo

Reputation: 196

In Drupal 6 this is no longer automatic.

Edit the view and under "Feed Settings" set "Attach to" to the page that you want to autodiscover the feed.

Upvotes: 2

Jeremy French
Jeremy French

Reputation: 12187

This should happen automatically in most cases. If you are doing something a little strange you may need to use drupal_add_feed() to add the feed to the page

Upvotes: 1

Related Questions