Hi,
When I add a new page in the CMS, I would like the newly added page to go to the top of the list in the tree view. At the moment it goes to the bottom.
I have downloaded the DOM in which I see there is a SortableDataObject module. However I am looking for a lightweight solution and suspect that there is a lot of code in this module which is not needed for this particular issue.
Does anyone know of a lightweight solution?
Simply adding
static $default_sort = 'Sort DESC';
or
static $default_sort = 'ID DESC';
beneath the line
class Page extends SiteTree{
in mysite/code/page.php
does not appear to work after I rebuild the database and flush the CMS page.
The new page still gets added to the bottom.
I hope I do not have to instruct my client to drag and drop every page.
Apologies if I have overlooked something obvious here.
Thanks.
PS. I am using Version 2.4 because my client is stuck with hosting which only supports PHP 5.2.