Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I need to recognize when the hook is fire in the pages, because for some pages in my plugin I need to do something.
plugins.fireHook('filter:topics.get', {topics: topics, uid: uid}, next);
is there some method that I can use to do this?
You can use the filter:<templateName>.build hooks. For the category page it would be filter:category.build, for a topic page it would be filter:topic.build and so on.
filter:<templateName>.build
filter:category.build
filter:topic.build
O
NodeBB SEO is in fine fettle.
Returns this thread as the #1 result in duckduckgo 😳
Does this answer the question?
X
try both but same result,i have no idea why i just installed today and everythings are running at lastest version
P
So what would this page you're proposing look like? How would it work?
G
Hello everyone. My database is mongodb,How can I query the topic(searchtopic) by a post(searchpost). thanks alt text
J
nodebb-plugin-dbsearch and nodebb-plugin-solr use those hooks 🙂