Calculations/Evaluations are not part of the lightweight template engine NodeBB uses. (AFAIK)
I guess the best would be to intercept the filter:post.getPosts hook and add your custom index values...
This plugin adds a new route to your NodeBB at
This route shows a feed of posts from users that you follow. The page has 4 widget areas to further customize it. You can also filter by a user or category.
I installed the plugin on this forum to showcase it https://community.nodebb.org/feed
@baris thanks a lot.
@baris Drops an error if you are not logged in.
@dogs thanks for reporting, it will redirect to login now.
I get an error on activation of this plugin - see below
TypeError: controllerHelpers.getSelectedCategory is not a function at renderFeed (/home/phenomlab/nodebb/node_modules/nodebb-plugin-feed/index.js:33:21) at /home/phenomlab/nodebb/src/routes/helpers.js:34:11 at Layer.handle [as handle_request] (/home/phenomlab/nodebb/node_modules/express/lib/router/layer.js:95:5) at next (/home/phenomlab/nodebb/node_modules/express/lib/router/route.js:137:13) at pluginHooks (/home/phenomlab/nodebb/src/middleware/index.js:100:3) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async /home/phenomlab/nodebb/src/middleware/helpers.js:9:5
Ahh looks like the latest version of this plugin requires nodebb 1.17.0. Use 1.0.1 if you are on nodebb 1.16.2.
@baris Thanks very much.
@baris I've noticed that there doesn't seem to be way to add anything in terms of widget to the content section (it's not shown). On other "pages", I can add a header, content, etc. Is this expected ?
You should be able to add widgets on the extend/widgets page
@baris Correct, but there isn't one for "content". I expect that's normal, but wanted to check ?
Yeah, that's normal.