Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Menu(2) reordering for NewsPage

Go to End



Community Member, 42 Posts

13 January 2010 at 6:19am

How Can I change sort ordering (Sort='Desc') for

This working after click on "Novinky" ("News") menu item (image good.jpg):

class Page_Controller extends ContentController {
public function init() {
global $project;
if ( $this->ClassName == 'NewsHolder' || $this->ClassName == 'NewsPage' ) {

function ChildrenResorted( $field = 'Sort', $so = 'DESC' ) {
return ( $this->Children()->Count() ? $this->Children()->sort( $field, $so ) : $this->Parent()->Children()->sort( $field, $so ) );

This not working after click on item on item (normal ) under parent menu "Novinky" ("News") (image bad.jpg):
Items in (Children) are sorted by default.
Why? Where can I resort Menu(2) items before it shows?

Help me somebody, please?

Attached Files