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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Order tabs in backend


Go to End


3 Posts   1122 Views

Avatar
Bereusei

Community Member, 96 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, 96 Posts

5 January 2013 at 7:37am

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