This is a very interesting thread and I would love to see @xiehan's idea come into fruition. Going forward I believe more and more sites will add a forum feature to their already existing site rather than running it separately so a seamless integration becomes the more vital. @Xiehan I would also love to know what you guys have done to overcome some of these limitations?
Integration with Canny.io
I'm trying to make a widget show up in nodebb under one of the categories I have.
The idea is to check node_modules\nodebb-theme-slick\templates\category.tpl which category it's displaying (for now) and then display the widget instead of the category content.
As I suspected, I'm not sure if this is the right way to do this kind of integration. I know one approach is to build a plugin. But I want to fix this in the template asap to test the canny.io functionality first before I put more time on it.
An approach I've had is like this:
And I've placed this code in category.tpl (in slick theme) (PS: FOR NOW):
<div data-canny />
I'm trying to find a hook that fires on each page visit, or better yet, each time I enter a category!
Are there any like that? All hooks I've tried seem to fire the first time I enter the categoy on a cold start, not when clicking from the main page.
Everything seems to fire the first time I save the custom script (because of live reload), but I'm not really sure what the approach should be here, even this line of code runs the first time I run it but no more when visiting the categories.
$(window).on('AKHFSDAJHFG', console.log('test end'));
action:ajaxify.endis the hook you're looking for.