I’m sure this has been covered somewhere BUT at the risk of getting clobbered, does anyone know how to show the Latest Discussions (rss? xml?) on another page?
For us, the discourse forum will be a sub-directory of a larger site. I’d love to show the Latest 5 Discussion topics on the front page of the main site as a way to get people engaged with the forum.
Any thoughts on how to do this? Reference posts?
1 Like
You can embed discourse on a website:
If you grab the latest builds of Discourse you’ll get a the ability to embed topic lists in other sites via some simple Javascript and HTML.
The typical use case for this is a blog or other content driven site, where you want a widget on the side of the screen that lists topics. You can filter by category, tag, or any of the other public filter options available.
How to Embed a list of Topics
First, you must enable the embed topics list site setting.
Then, in your HTML add a <script> tag tha…
Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out Coding Horror’s blog . The blog is run via Ghost but the comments are embedded from his Discourse forum .
One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …
Would that work for your set-up?
5 Likes
Canapin
(Coin-coin le Canapin)
March 7, 2022, 6:09pm
3
I don’t know if it will help, but I show an exerpt of the last topics on my Wordpress website.
https://monocycle.info/ Look at the right sidebar.
I use https://forum.monocycle.info/latest.json?order=created&ascending=false
But I need additional information, so I use I use https://forum.monocycle.info/site.json to get the categories’ names from their ID.
I also use https://forum.monocycle.info/t/[topic-number] for each of my 5 last topics to get additional information.
I don’t do much of these requests, I use a CRON task so it’s not updated in real time, maybe twice or once a day…
Maybe @JammyDodger ’s link will be of better help
3 Likes
Thank you for the response. I’ll dig into this and let you know if it works for our site.
-ck
2 Likes