How can I pass additional user data to header?
Unsolved
NodeBB Development
-
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? -
It seems we had a
filter:header.build
, although it was named inappropriately for what it did, and is now deprecated.Unfortunately, it means we can't use the same hook name for risk of conflicts, but I see no reason we can't include a hook in
buildHeader
/renderHeader
... -
Can I do a pull request? Or someone else will do that?
Copyright © 2024 NodeBB | Contributors