How to access settings values in "quickstart" plugin
-
It's about this plugin: https://github.com/NodeBB/nodebb-plugin-quickstart
In the admin page it says I can access the values in Setting1 or Setting2 with:
meta.settings.get('quickstart');I don't really know where to call it. I searched for "meta" but couldn't find it. So, I pasted in every JS file I could find within that plugin folder and tried to log it out. But in vain. It doesn't recognize "meta"
-
@Thadeusz-Lay so are you trying to create your own plugin?
meta
is a NodeBB module. You have to require it from NodeBB withrequire.main.require('./src/meta')
on the server side.
Copyright © 2024 NodeBB | Contributors