Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Set Main Menu Sort Order?

I'm working on a custom menu for the 'default.master.php' view and I can't seem to figure out what makes '$this->Menu->AddLink' sort order by? Like I can't get the right custom order that I want using the classes AddLink? How do I do this?

Best Answer

  • YohnYohn New
    edited April 2012 Answer ✓

    In your config.php add the following in whatever order you like

    $Configuration['Garden']['Menu']['Sort'] = array('Discussions', 'Conversations', 'User', 'Questions', 'Activity', 'Applicants', 'Dashboard');
    

    you can take some of them out as well if you dont use them..

Answers

  • YohnYohn New
    edited April 2012 Answer ✓

    In your config.php add the following in whatever order you like

    $Configuration['Garden']['Menu']['Sort'] = array('Discussions', 'Conversations', 'User', 'Questions', 'Activity', 'Applicants', 'Dashboard');
    

    you can take some of them out as well if you dont use them..

  • Thanks Yohn! How does that work with menu's with dropdowns? Is it just assumed that it goes left to right and then when it hits a drop-down it goes down before going to the next right item?

    Thanks!

Sign In or Register to comment.