Existe alguma maneira de incorporar tópicos específicos, ou “posts mais recentes”, ou algo semelhante em um site de terceiros? Preferencialmente apenas algum código Javascript ou iframe.
Tentei pesquisar e usar o Google, mas não consegui encontrar uma solução.
Agradeço antecipadamente!
Esta foi a coisa mais próxima que consegui pensar, mas é para comentários.
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 …
Sim, é possível e funciona bem:
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 curtidas
Incrível! Parece que isso vai resolver.
Só estou curioso, por que só consigo mostrar 1 tópico? Alguém sabe?
Aqui está a categoria (que tem muitos tópicos): Amazon Specific - Process & Workflow Management Forum
E o código de incorporação:
<d-topics-list discourse-url="https://forum.flowster.app" template="complete" top_period="all" category="17" per-page="5"></d-topics-list>
Mas apenas um tópico aparece:
Falco
(Falco)
Junho 27, 2022, 1:46am
6
Você pode compartilhar o URL onde o embed está hospedado?
@Falco aqui está o HTML. Ele ainda não está em nenhum lugar (já que não está funcionando, apenas um tópico aparece)
<!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>