Merge pull request #8878 from DorsetDigital/patch-3

Update 02_RSSFeed.md

[ci skip]
This commit is contained in:
Robbie Averill 2019-03-25 08:57:17 +13:00 committed by GitHub
commit 2972acd251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()