Skip to content

Commit

Permalink
Merge pull request silverstripe#3790 from ProzacJellybeans/patch-1
Browse files Browse the repository at this point in the history
Extending site - RSS correction
  • Loading branch information
Hamish Friedlander committed Jan 15, 2015
2 parents 50d80e5 + 8b1aa5f commit 9e4c0c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/en/01_Tutorials/02_Extending_A_Basic_Site.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ page layout.
### ArticlePage Template
First, the template for displaying a single article:

**themes/simple/templates/Layout/ArticlePage.ss**
**themes/simple/templates/Layout/ArticlePage.ss**


:::ss
Expand Down Expand Up @@ -409,6 +409,9 @@ An RSS feed is something that no news section should be without. SilverStripe ma
}


Ensure that when you have input the code to implement an RSS feed; flush the webpage afterwards
(add ?flush=all on the end of your URL). This is because allowed_actions has changed.

This function creates an RSS feed of all the news articles, and outputs it to the browser. If we go to [http://localhost/your_site_name/news/rss](http://localhost/your_site_name/news/rss) we should see our RSS feed. When there is more to a URL after a page's base URL, "rss" in this case, SilverStripe will call the function with that name on the controller if it exists.

Depending on your browser, you should see something like the picture below. If your browser doesn't support RSS, you will most likely see the XML output instead. For more on RSS, see `[api:RSSFeed]`
Expand Down

0 comments on commit 9e4c0c6

Please sign in to comment.