Jump to:

22983 Posts in 11709 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Order tabs in backend

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 330 Views
  • Bereusei
    Avatar
    Community Member
    94 Posts

    Order tabs in backend Link to this post

    He guys,

    happy new year! I´m using for Silver Stripe 2.4. several ModelAdmins (StaffMembers, Products...).
    Does anyone know how I can change the order of the tabs in the top of the backend?
    For example: 1. Products, 2. StaffMembers and not the other way around.

  • IOTI
    Avatar
    Community Member
    187 Posts

    Re: Order tabs in backend Link to this post

    Hi Bereusei

    I believe you can control the order using the static variable $menu_priority.

    class Products extends ModelAdmin {
    public static $menu_priority = 1;
    }

    class StaffMembers extends ModelAdmin {
    public static $menu_priority = 2;
    }

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: Order tabs in backend Link to this post

    Great, thanks. This is what I was looking for.

    330 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.