Navigation Header
-
Seems there is changes in navigation logic in
0.7.0
.
Could you share best practices how to work with new navigation from the plugins?
Is it requirement, that users should manually add menu item in ACP->Navigation section? Or there is an option to add it from the plugin without bothering the user?Currently I have filter for
filter:navigation.available
method looks like:Filter.navigation = function (items, callback) { items.push({ route : "/points", title : "Points", enabled : true, iconClass: "fa-gamepad", textClass: "visible-xs-inline", text : "Points" }); callback(null, items); };
-
@julian @psychobunny guys, could you collaborate?
-
Is it requirement, that users should manually add menu item in ACP->Navigation section?
Yup. In your plugin's readme / ACP page let the user know they should add the plugin page to the menu bar if they want to
-
@psychobunny can we add to the end at least? And if user wants to adjust it, he can rearrange in ACP.
-
Hmm. That might make sense, maybe on plugin activate it appends to end and on deactivate it removes it