The data for the menu isn't present in the categories route, that's why nothing shows... seems odd to put menu in that route, any particular reason? People here can likely find some alternative...
v0.6.1 hook filter:category.get not firing
-
Hi,
the hook filter:category.get is not firing anymore in nodeBB version 0.6.1.
Also the hook filter:category.topics.get doesn't seem to get the right object as argument. Instead of the properties listed here there are only the properties topics and uid.
cheers
drlogout -
filter:category.get is removed.
I updated the docs. Therer are two hooks there. https://github.com/NodeBB/NodeBB/wiki/Plugin-Hooks#filtercategorytopicsprepare and https://github.com/NodeBB/NodeBB/wiki/Plugin-Hooks#filtercategorytopicsget
-
@baris thanks for the fast reply!
I used filter:category.get to modify the category property. How is this possible now?
-
Added back
filter:category.get
https://github.com/NodeBB/NodeBB/commit/429d7cbfa25f15a77bc670ab3dcb3f5cdced0a2eIt is passed the category data and the uid of the calling user.
-
@baris great, thanks!
[EDIT] Will this hook persist?