17488 Posts in 4473 Topics by 1978 members
|Go to End|
8 March 2008 at 9:42pm Last edited: 8 March 2008 9:42pm
I have followed the "ArticleHolder/ArticlePage" tutorial and I am trying to figure out how to make a new article page appear at the top of the ArticleHolder children in the Site Tree instead of at the bottom (to have articles show in order of date published).
Is there away to do this or should I create a function using the DataObject::get method to list them on the page?
8 March 2008 at 10:10pm
2 things - you can reorganise the order of the pages by clicking the the create button at the top of the site tree and ticking the reorganize box then drag and drop the page to where you want it.
Or like you said you could also use a method to return them. so you would have something like DataObject::get('ArticlePage','','Date DESC'); you can see this sort of method in the tutorial 2
|Go to Top|