Sono sicuro che sia stato trattato da qualche parte, MA a rischio di essere criticato, qualcuno sa come mostrare le Ultime Discussioni (rss? xml?) su un’altra pagina?
Per noi, il forum di discourse sarà una sottodirectory di un sito più grande. Mi piacerebbe mostrare gli ultimi 5 argomenti di discussione sulla homepage del sito principale come modo per coinvolgere le persone nel forum.
Qualche idea su come fare? Post di riferimento?
1 Mi Piace
Puoi incorporare discourse su un sito web:
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 …
Funzionerebbe per la tua configurazione?
5 Mi Piace
Canapin
(Coin-coin le Canapin)
7 Marzo 2022, 6:09pm
3
Non so se aiuterà, ma mostro un estratto degli ultimi argomenti sul mio sito web Wordpress.
https://monocycle.info/ Guarda la barra laterale destra.
Uso https://forum.monocycle.info/latest.json?order=created&ascending=false
Ma ho bisogno di informazioni aggiuntive, quindi uso https://forum.monocycle.info/site.json per ottenere i nomi delle categorie dai loro ID.
Uso anche https://forum.monocycle.info/t/[numero-argomento] per ciascuno dei miei 5 ultimi argomenti per ottenere informazioni aggiuntive.
Non faccio molte di queste richieste, uso un’attività CRON quindi non è aggiornato in tempo reale, forse due o una volta al giorno…
Forse il link di @JammyDodger sarà di maggiore aiuto
3 Mi Piace
Grazie per la risposta. Approfondirò questo aspetto e ti farò sapere se funziona per il nostro sito.
-ck
2 Mi Piace
Questo è fantastico, grazie!
1 Mi Piace