Understood. Thank you for response
Vlad Mashkin
Posts
-
What is for ''/compose" route? -
What is for ''/compose" route?I've noticed that
/compose
route is registered insrc/routes/index.js
file. But there is no controller for that route as well as a template file. Why is it necessary then? -
How can I pass additional user data to header?Can I do a pull request? Or someone else will do that?
-
How can I pass additional user data to header?I need to pass some custom data to header template. I see I can do that in
middleware.renderHeader
function. But is there any way to do it from inside a plugin. Maybe it is possible to add a filter hook intomiddleware.renderHeader
function? -
action:middleware.pageViewBrilliant! Thank you
-
action:middleware.pageViewCan you please pass
res
object into the hook? As I need to clear some cookies. -
action:middleware.pageViewI would be very appreciated if you can add one more hook into
authenticationController.logout
function (I need to perform additional actions on logout request). -
action:middleware.pageViewThanks a lot @baris
-
action:middleware.pageViewIs it possible to add new hook
action:middleware.pageView
inmiddleware.pageView
function? -
Expose custom fields to be used in templatesFor example, I would like to replace username on topic, like shown on the screenshot:
-
Expose custom fields to be used in templatesHello everyone!
I've added a few custom fields using
filter:user.custom_fields
hook.
How can I expose custom fields to be used in templates?Any response is highly appreciated.
-
Move installed plugins from development to production environmentI mean exclude from excluding the plugin folder
-
Move installed plugins from development to production environmentI think I'll go the way of placing plugin into node_modules folder, excluding it from
.gitignore
and committing it.Thank you again!
-
Move installed plugins from development to production environmentThank you for response!)
But what if my plugin is very project relative and shouldn't be publicly published?
I was thinking about to exclude plugin folder in.gitignore
...Also is there any special tool for exporting NodeBB settings? Or I should do just regular mongodb dump?
-
Move installed plugins from development to production environmentHello!
What is the most proper way to move developed plugins from development to production environment?
-
Populate additional fields when creating a user using Write APIThanks a lot for your assistance. The filter
filter:user.updateProfile
seems to be very useful for my needs. -
Populate additional fields when creating a user using Write APIThank you for response!
No, I'm using mongo instead of redis. I'm just wondering how can I write additional fields like
fullname
,location
etc. using Write API. Should I firstly create a user withPOST /api/v1/users/
and then make additional API callPUT /api/v1/users/:uid
in order to populate additional user fields? -
Populate additional fields when creating a user using Write APIHello everyone!
I'm creating users in NodeBB instance from another Node.js application using NodeBB Write API plugin.
According to the documentation
POST /api/v1/users/
accepts onlyusername, password, email
fields and "Any other data passed in will be saved into the user hash".My questions are: What is actually user hash in context of NodeBB? And is it possible at all to populate any other fields than
username, password, email
when creating a user using Write API?