Jump to:

794 Posts in 409 Topics by 304 members


SilverStripe Forums » Widgets » Subscribe RSS Widget on the home page

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1375 Views
  • Anatol
    126 Posts

    Subscribe RSS Widget on the home page Link to this post


    I often use the Blog module for the 'home' (or start) page. In this setup there is a little problem with the SubscribeRSSWidget. Instead of linking to mydomain.com/home/rss (which is the correct link to the rss feed) it links to mydomain.com/rss . If you click on that link all you get is a "Page not found" error.

    Here is a simple fix for this problem. In /blog/code/widgets/SubscribeRSSWidget.php add the following line in green to RSSLink():

    function RSSLink() {
       $container = BlogTree::current();
       if ($container && $container->Link() == '/') return '/home/rss';
       if ($container) return $container->Link() . 'rss';

    It would be good if this or a similar fix could be added to the widget. To me a blog on the home page seems to be a quite common setup.


  • Willr
    Forum Moderator
    5497 Posts

    Re: Subscribe RSS Widget on the home page Link to this post

    See this wiki page for how to submit code enhancements / patches. Things like this fix would be good to get into core as like you said its quite a common setup and a pretty simple fix.


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.