mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3790 from ProzacJellybeans/patch-1
Extending site - RSS correction
This commit is contained in:
commit
9e4c0c6663
@ -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
|
||||
@ -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]`
|
||||
|
Loading…
Reference in New Issue
Block a user