Y a-t-il un moyen d’intégrer des sujets spécifiques, des « derniers articles » ou quelque chose de similaire sur un site tiers ? Idéalement, juste du code Javascript ou iframe.
J’ai essayé de chercher et de Googler et je n’ai pas trouvé de solution.
Merci d’avance !
C’était la chose la plus proche à laquelle je pouvais penser, mais c’est pour les commentaires.
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 …
Oui, c’est possible, et cela fonctionne bien :
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…
3 « J'aime »
Génial ! Cela semble être la solution.
Je me demandais juste pourquoi je n’arrive à afficher qu’un seul sujet ? Quelqu’un sait ?
Voici la catégorie (qui a de nombreux sujets) : Amazon Specific - Process & Workflow Management Forum
Et le code d’intégration :
<d-topics-list discourse-url="https://forum.flowster.app" template="complete" top_period="all" category="17" per-page="5"></d-topics-list>
Mais un seul sujet apparaît :
Quelqu’un a-t-il des idées ?
Falco
(Falco)
Juin 27, 2022, 1:46
6
Pouvez-vous partager l’URL où l’intégration réside ?
@Falco voici le HTML. Il n’est encore nulle part (puisqu’il ne fonctionne pas, un seul sujet apparaît)
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://forum.flowster.app/javascripts/embed-topics.js"></script>
</head>
<body>
<d-topics-list discourse-url="https://forum.flowster.app" template="complete" top_period="all" category="17" per-page="5"></d-topics-list>
</body>
</html>