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   455 Views

Avatar
Bereusei

Community Member, 94 Posts

3 January 2013 at 1:47am

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
copernican

Community Member, 189 Posts

4 January 2013 at 3:32pm

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

Community Member, 94 Posts

5 January 2013 at 7:37am

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