hi guys,
I've used this tutorial to create a page a news page
http://doc.silverstripe.org/sapphire/en/tutorials/2-extending-a-basic-site
however I have a problem with the articleholder not displaying the pages sorted by descending date, rather its showing by how its sorted in the admin panel
this is the current code i use for the articleholder.php page
<?php
/**
* Defines the ArticleHolder page type
*/
class ArticleHolder extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array('ArticlePage');
}
class ArticleHolder_Controller extends Page_Controller {
function rss() {
$rss = new RSSFeed($this->Children(), $this->Link(), "BBY News");
$rss->outputToBrowser();
}
}
?>
the blog module sorts by date but i cant seem to be able to figure out how to do it with the news page
cheers