@cool You can just check req.uid, if it is true then the user is logged in.
Custom properties or fields in theme
I'm a completely new developer in NodeBB and I have started developing a custom theme with Vanilla as base theme but I have two main doubts that are probably linked.
First of all, I would like to modify the default value of "Custom Class" attribute in theme configuration related with category view.
Admin > Manage > Category Settings:
But I think it's not theme related but global variable related.
Anyone can help me to find out where those values are coming from and how can I change the default behaviour?
The second one is also related. I would like to add a new custom field in the config screen:
Similar to the "Category Image" one, but with other name, in order to use it as category background image for instance...
I really appreciate your help!