From 092cda89af9d154ae68bcbfdb3b4c4580fdc9d64 Mon Sep 17 00:00:00 2001 From: cieszak Date: Tue, 15 Oct 2013 23:01:23 +0200 Subject: [PATCH] Update rssfeed.md add $allowed_actions --- docs/en/reference/rssfeed.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en/reference/rssfeed.md b/docs/en/reference/rssfeed.md index d2b78fad8..515c18e01 100644 --- a/docs/en/reference/rssfeed.md +++ b/docs/en/reference/rssfeed.md @@ -43,6 +43,7 @@ SilverStripe what values to include in the feed. :::php class Page_Controller extends ContentController { + private static $allowed_actions = array('rss'); public function init() { // linkToFeed will add an appropriate HTML link tag to the website // tag to notify web browsers that an RSS feed is available @@ -80,6 +81,8 @@ updates. Update mysite/code/Page.php to something like this: Link() . "rss", "10 Most Recently Updated Pages"); @@ -123,6 +126,7 @@ for all the students as we've seen before. :::php class Page_Controller extends ContentController { + private static $allowed_actions = array('students'); public function init() { RSSFeed::linkToFeed($this->Link("students"), "Students feed"); parent::init(); @@ -172,4 +176,4 @@ accessing feeds from external sources. ## API Documentation -* `[api:RSSFeed]` \ No newline at end of file +* `[api:RSSFeed]`