When grabbing posts to display on a static page, plugins don't work.



  • I have a forum called 'News' and I want to display the most recent topic from this forum on the home page. I've successfully done this with a jQuery script in the header of the custom home page.

    The trouble is that the plugins I'm using that normally parse things like video and custom markdown in the posts don't interpret these things on the home page.

    This means that a post might have video content embedded when posted that isn't displaying correctly when it gets pulled to the home page.

    Does anyone have any advice on how to fix this? Should I just try to create new parsing scripts for the home page?

    Thanks for any help! I'm new to Node.js and nodebb. It's gone pretty well so far, but I haven't been able to fix this issue on my own.



  • SOLVED

    Just in case anyone else runs into a similar problem, I was looking at the wrong api urls to get what I needed.

    I needed to be getting JSON from the topic data, rather than category or post. Most everything is working now.

    😤




Looks like your connection to NodeBB was lost, please wait while we try to reconnect.