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.

General Questions

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

Order tabs in backend


Reply

3 Posts   431 Views

Avatar
Bereusei

3 January 2013 at 1:47am Community Member, 94 Posts

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.

Avatar
IOTI

4 January 2013 at 3:32pm Community Member, 189 Posts

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;
}

Avatar
Bereusei

5 January 2013 at 7:37am Community Member, 94 Posts

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