mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
simon_w: #2123 - Blog RSS sorted by date
This commit is contained in:
parent
43fd90621e
commit
b819135fe5
@ -249,7 +249,9 @@ class BlogHolder_Controller extends Page_Controller {
|
|||||||
*/
|
*/
|
||||||
function rss() {
|
function rss() {
|
||||||
global $project;
|
global $project;
|
||||||
$rss = new RSSFeed($this->Children(), $this->Link(), $project . " blog", "", "Title", "ParsedContent");
|
$children = $this->Children();
|
||||||
|
$children->sort('Date', 'DESC');
|
||||||
|
$rss = new RSSFeed($children, $this->Link(), $project . " blog", "", "Title", "ParsedContent");
|
||||||
$rss->outputToBrowser();
|
$rss->outputToBrowser();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user