@julian Thanks for getting back to me quickly. Other priorities pulled me away from this, but after looking at your response, it seems like what I'm actually after are "unread" counts, not just notifications. The simple GET solution returned notifications, but not every "unread". Our app is using the session sharing plugin, and we are associating NodeBB accounts with our app accounts. Would I be able to leverage some of the session sharing functionality to get an unread count for users on our app based on their NodeBB account? Thanks
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