5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 979 Views |
-
Menu(2) reordering for NewsPage

13 January 2010 at 6:19am
How Can I change sort ordering (Sort='Desc') for Newspage.ss.
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' ) {
$this->ChildrenResorted();
}
..........................}
function ChildrenResorted( $field = 'Sort', $so = 'DESC' ) {
return ( $this->Children()->Count() ? $this->Children()->sort( $field, $so ) : $this->Parent()->Children()->sort( $field, $so ) );
}BUT.
This not working after click on item on item (normal Sidebar.ss ) under parent menu "Novinky" ("News") (image bad.jpg):
Items in Sidebar.ss (Children) are sorted by default.
Why? Where can I resort Menu(2) items before it shows?Help me somebody, please?
| 979 Views | ||
|
Page:
1
|
Go to Top |

