Gibt es eine Möglichkeit, bestimmte Themen oder “neueste Beiträge” oder ähnliches in eine Drittanbieter-Website einzubetten? Vorzugsweise nur mit etwas Javascript- oder iframe-Code.
Ich habe versucht zu suchen und zu googeln und konnte keine Lösung finden.
Vielen Dank im Voraus!
Das war das Nächstliegende, das mir einfiel, aber es ist für Kommentare.
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 …
Ja, das ist möglich und funktioniert gut:
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 „Gefällt mir“
Super! Das sieht so aus, als würde es funktionieren.
Ich frage mich nur, warum ich nur 1 Thema angezeigt bekomme? Weiß das jemand?
Hier ist die Kategorie (mit vielen Themen): Amazon Specific - Process & Workflow Management Forum
Und der Einbettungscode:
<d-topics-list discourse-url="https://forum.flowster.app" template="complete" top_period="all" category="17" per-page="5"></d-topics-list>
Aber es erscheint nur ein Thema:
:denkend:
Falco
(Falco)
27. Juni 2022 um 01:46
6
Können Sie die URL teilen, auf der das Embedding lebt?
@Falco hier ist das HTML. Es ist noch nirgends zu finden (da es nicht funktioniert, erscheint nur ein Thema)
<!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>