FYI, this older version is generation the following message in the NodeBB log:
14/4 08:03:46  - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.
Overriding Admin tpl's From A Plugin?
Is this possible? I've hunted around and haven't found anyone talking about a way of overriding admin tpl's. I'd like to hide some of the admin options from certain types of admins (based on user group membership).
Any thoughts on this?
jarey last edited by jarey
@jongarrison don't know if it can be compared, but at least the scripts client side are overriden if you define the same 'define'. Could be the same behaviour if you declare a tpl with same name and path on your plugin? Or maybe declare it for the same route?
Haven't tried it yet, but i'm curious.
Maybe it's just something silly...
@jarey yes, that should work. If you define a template with the same path and name, it will override an existing one. e.g.
I tried this today and I was able to override an admin template. I'm not sure what I did incorrectly when I tried earlier. Thanks for confirming that this could be done!
any chance to share the repository? thanks in advance