No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.
// library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }Plugins not working after installation
-
Hey,
I've been trying to install a few plugins, and even though the installation is successful, when I'm trying to access the plugin's page it just loads forever and doesn't work.
My NodeBB is running on CentOS 7 + redis.
I'd appreciate if someone could help me find a solution -
Possibly sounds like a browser script crashing. What is the full list of plugins you have installed?
-
@yariplus said in Plugins not working after installation:
Possibly sounds like a browser script crashing. What is the full list of plugins you have installed?
It appears that rebuilding the forum + refreshing the page enabled access to the pages.
However, I still cant make any Search Plugin work on my forum properly, be it DB search, Elastic or Solr. I'm using a non-roman alphabet