How to Embed Recent and Popular Topics?

Does anyone know how to embed the discourse recent and popular posts to another website?

What I am looking for is similar to the below layout can someone provide the document for embedding discourse on another site?

1 Like

Have a look here

6 Likes

@Johani

I tried to follow the instructions on that discussion but I not able to iframe it successfully on my Joomla site.

Here is the example script which I created:

  1. Below added to the template section where I can add scripts:

<script src="https://example.com/javascripts/embed-topics.js"></script>

  1. Below added to as a HTML module to a particular position.

<d-topics-list discourse-url="https://example.com/latest"></d-topics-list>

But this is what it shows on the front end.

15%20AM

What I want to display on my website is the latest 5 or 10 posts from my discourse forum.

Finally managed to successfully embed using below

  1. Below added to the template section where I can add scripts:

<script src="https://example.com/javascripts/embed-topics.js"></script>

  1. Below added to as a HTML module to a particular position.

<d-topics-list discourse-url="https://example.com"></d-topics-list>

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.