From abe76e9b29ee92b4391fee98fe5410e98755eba6 Mon Sep 17 00:00:00 2001 From: DorsetDigital Date: Sat, 23 Mar 2019 13:22:37 +0000 Subject: [PATCH] Update 02_RSSFeed.md Change file name to PageController to match code. Change example code to use parameter in `Link()` method rather than using concatenation --- docs/en/02_Developer_Guides/11_Integration/02_RSSFeed.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/02_Developer_Guides/11_Integration/02_RSSFeed.md b/docs/en/02_Developer_Guides/11_Integration/02_RSSFeed.md index 0fa5faee5..d430d65ef 100644 --- a/docs/en/02_Developer_Guides/11_Integration/02_RSSFeed.md +++ b/docs/en/02_Developer_Guides/11_Integration/02_RSSFeed.md @@ -55,7 +55,7 @@ RSSFeed::linkToFeed($link, $title); You can use [RSSFeed](api:SilverStripe\Control\RSS\RSSFeed) to easily create a feed showing your latest Page updates. The following example adds a page `/home/rss/` which displays an XML file the latest updated pages. -**app/code/Page.php** +**app/code/PageController.php** ```php use SilverStripe\Control\RSS\RSSFeed; @@ -71,7 +71,7 @@ class PageController extends ContentController { parent::init(); - RSSFeed::linkToFeed($this->Link() . "rss", "10 Most Recently Updated Pages"); + RSSFeed::linkToFeed($this->Link("rss"), "10 Most Recently Updated Pages"); } public function rss()