Skip to content

Commit

Permalink
Added language to provide an explanation of the use of the 'order' ke…
Browse files Browse the repository at this point in the history
…y when registering a back-end menu item (#306)

Credit to @ibanks
  • Loading branch information
ibanks authored and Luke Towers committed Aug 2, 2018
1 parent a0c0f24 commit ec62e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-registration.md
Expand Up @@ -231,7 +231,7 @@ Plugins can extend the back-end navigation menus by overriding the `registerNavi
];
}

When you register the back-end navigation you can use [localization strings](localization) for the `label` values. Back-end navigation can also be controlled by the `permissions` values and correspond to defined [back-end user permissions](../backend/users).
When you register the back-end navigation you can use [localization strings](localization) for the `label` values. Back-end navigation can also be controlled by the `permissions` values and correspond to defined [back-end user permissions](../backend/users). The order in which the back-end navigation appears on the overall navigation menu items, is controlled by the `order` value. Higher numbers mean that the item will appear later on in the order of menu items while lower numbers mean that it will appear earlier on.

To make the sub-menu items visible, you may [set the navigation context](../backend/controllers-ajax#navigation-context) in the back-end controller using the `BackendMenu::setContext` method. This will make the parent menu item active and display the children in the side menu.

Expand Down

0 comments on commit ec62e49

Please sign in to comment.