I have a View for our site's news items/articles and it's corresponding RSS feed is working fine. I also have a specific front page noted in our "site information" config for our home page. I would like the View RSS feed to show up / be referenced from our site's front page as well. So I'd like users to be able to subscribe to the RSS feed via the menu bar RSS icon on our home page. How can I get the RSS icon to show up in the browser menu bar from our front page (and it be the RSS feed of our Views generated news page)?
I know I can just add an RSS icon to the home page and link it to the RSS feed, but I want the RSS icon to show up automatically and be referenced from the URL menu bar in the browser.
Thanks in advance for any suggestions.
Comments
How and if that RSS feed
How and if that RSS feed shows up as a link and/or as an autodiscovery (so the browser recognizes it) depends on your theme. Most themes should automatically display the feed if that argument is indicated in the view. A link to the site where the issue is occurring would help as well. I'm doing the same thing you are on this site. I haven't made any adjustments to the theme and the RSS for the front page view appears.
Rob Safuto
Awakened Voice
Thanks Rob. I've replied to
Thanks Rob. I've replied to you via your contact form with more info.
-Trevor
Looking at this again I
Looking at this again I believe that I didn't fully understand what you were saying. I understand the issue a little better now. The view is not the front page, but you want the feed for the view to be autodiscovered on the front page.
One way to do that is to alter the theme files so that the autodiscovery link in the header for the front page is hardcoded to the particular view feed address that you want to represent the primary feed. I recently gave someone else guidance on that here.
Rob Safuto
Awakened Voice (Social Media Portal)
Learn By The Drop (Drupal Learning Site)
Excellent! Thanks Rob.
Excellent! Thanks Rob. I'll take a look at your post on this.
-Trevor
Thanks!
Rob,
Thanks again for the suggestion. That worked perfectly. I added the
to my page.tpl.php file and it's now displaying it on the front page of our site, as well as site-wide. Now I need to figure out how to limit it to just display on the front page, although site wide is fine since users can subscribe to multiple feeds from the same page (since all feeds get referenced via autodiscovery). So it doesn't conflict with the specific Views feeds I already have.
Thanks again.
You can create a theme file
You can create a theme file that only works for the front page. Make the changes that you want for the front page, name the file page-front.tpl.php and upload that file to your theme directory. Any page that is not the front page will still use page.tpl.php for the theme format.
Rob Safuto
Awakened Voice (Social Media Portal)
Learn By The Drop (Drupal Learning Site)
Would be nice if there was a
Would be nice if there was a module that allowed you to select a feed from the site to be the one on the front page for situations just like this.
Rob Safuto
Awakened Voice (Social Media Portal)
Learn By The Drop (Drupal Learning Site)
Yes, module for this would be cool ...
On my list of things to do once I'm finished working on some large projects and I have some free time!
Use views
You can use views to do this - just create a rss view and set the url to be rss.xml. It'll overwrite the feed that is created automatically.