Kirby RSS Feed not working


#1

Hi all,

I’ve followed this cookbook recipe for adding an RSS feed to my blog: https://getkirby.com/docs/cookbook/rss

However, it just shows a blank page with a Kirby 2.4.1 install. Is there something I’m missing or is the plugin no longer compatible? Anybody successfully implemented RSS recently?

Thanks!


#2

I also tried this route option:

c::set('routes', array(
  array(
    'pattern' => 'rss',
    'action' => function(){
      $output = page('insights')->children()->visible()->flip()->limit(10)->feed(array(
        'title'       => 'Latest Insights',
      	'description' => 'The latest insights',
      	'link'        => 'insights'
        ));
      $r = new Response($output, 'xml', 200);
      return $r;
      }
    )
));

Which returns an xml page but no results…


#3

I fixed it, I was being stupid!

I had the plugin folder name as “feed-plugin” when it should have just been “feed”.


#4

:+1: you save my sanity