Hmm I don't think we expose isAdmin and isModerator globally to the templates so that you can them everywhere. Maybe we should, everything in the config object is exposed so if you open your console and type config any variable you see under that object you can use in the templates. You can also take a look at the routes by prepending api to the url like https://community.nodebb.org/api/topic/1917/users-shouldn-t-be-able-to-purge-their-posts/10 you can use stuff from there in the template as well.
Category lookup and creation by normal user
Hi, first of all, I want to say this is such an amazing project. I really enjoy using it! Thank you!
So my question is pretty much in the title, I want normal registered user to be able to lookup existing categories and if it doesn't exist yet, allow him to create it.
I want the lookup experience just like the current tags lookup page here: https://community.nodebb.org/tags Filter possible results as user continue entering letters.
I think the creation of an category is can be easily accomplished with the write API, but is there already tools built for this lookup process? As a starting point I looked at the
/api/categories/and it's giving me too much info, I just want category name ...