I added a bunch of static webpages with content, but I would like it to load once the user scrolls down, in the same way as the forum works. Can I easily do this or am I better off using something else? Thanks!
@sebastian-marinescu said in New topic button:
Do you use a custom theme?
I'm using the default persona with an addon to disable subcategory view on the home page.
@julian said in New topic button:
You'll want to wire up a click handler to your trigger element, and when clicked, execute app.newTopic(); That's it!
Thank you, ill have to learn CSS/HTML to do this then I am guessing.
Here you go!
This should get you started. You'll need to edit the composer.tpl, or inject html at composer load, checking if the post is a new topic.
As it currently stands, category is hard coded into NodeBB. It will require a lot of work to make the paths custom, but it is a planned feature. So, you will either have to just not change the path or get somebody to change all of the hard coded areas that need to be notified in the site code.