Follow the steps here and pull from this link GitHub - paviliondev/discourse-news: Adds a news stream to your Discourse instance
Is it possible to add multiple feeds from different sources. It seems like we can add only one XML from only one source.
Hey @Pravi, thanks for using the plugin.
No, it is not currently possible to add multiple feeds.
Any future update on multiple feeds?
Hi,
Iâve got the Pavilion News plugin in my new discourse install - and Iâm testing it out with posts and users and have run into a number of issues that Iâm wondering if other News plugin users might have found a work around for?
Load times for home page?
Is there any way to control the number of news posts that are initially downloaded when a person, anonymous user comes to the site? It seems that it downloads the entire news section (every single post) at once - which seems crazy. As Iâve added News items to fill up the site a bit, load times for the home page have dramatically increased. When I just had a post or two load times were in the 200 ms range - but now with 10 or 15 posts the load time is up to 1500ms.
Stripped out images from the news posts?
Other than the top most image, any images that are in the post seem to be stripped out of the post so that when people read the /news feed the canât see any of the images that the text in the body refers to. Very strangeâŠ
Embedded Videos - Donât play, replaced by static image, with link to YouTube - thus side-stepping the embedded video ability. Takes the people off the site - which basically remove a feature from discourse.
Any suggestions appreciated!
Sorry, this isnât a solution, but those should just lazy load and show a static image before playing.
The basic concept here is that the News Plugin sits at and enhances a Topic List view of either a list of topics or RSS feed.
Thus the âper-Topicâ view is simpler than a single Topic view would be expected to be, but richer than the default, image-less âvenetian blindâ format of a regular Discourse Topic List.
This is expected and a practical compromise.
-
the pluginâs primary focus is RSS feeds and supports one featured image per âpostâ, however, it can also show an image from a Discourse Topic.
-
If you want to see the other images you can navigate to the full Topic.
-
this is partly to ensure performance is reasonable. To show all images from all Topics would be a large download.
-
This also keeps the layout more compact.
- Same goes for embedded videos on Topics, these are just presented as a thumbnail on the news feed, just like they would be on all equivalent plugins and theme components that display on the Topic List.
Is this for RSS or Discourse Category based feeds? If the latter there may be some performance enhancement potential by sourcing a low resolution thumbnail instead of the full sized image and applying lazy loading ⊠however given the size of the laid out image a low resolution image might not cut the mustard.
If your interest is not in RSS feeds then you might also want to check out Topic List Previews TC which is a bit more optimised for that task, but has a different flavour of layout.
Hi Rober - thanks for the explanation. This is not for an rss type application - this is for more of a blog + forum application. I wanted to avoid the hassles and overhead of having both a Wordpress site and the discourse forum since its a small side project for me.
How do you apply âlazy loadingâ - Iâm not a coder, and not familiar with that setting.
Thanks for your info.
Thatâs a feature request.
You canât. But it is a feature that should be in use nowadays anyway. So, hopefully devs of Discourse come to modern time ![]()
(No, I donât know how difficult it would be, but nearly every other platforms use it, and for reason)
Actually, itâs a fairly trivial change that doesnât need to involve the Discourse team, which Iâve gone ahead and made:
Iâve also deployed a set of fixes for breaking changes and modernised the template suffixes:
COMPATIBILITY: settings references · paviliondev/discourse-news@dcda6a7 (github.com)
Bonjour, je viens dâinstaller le plugin et câest un nouveau site qui utilise le thĂšme par dĂ©faut. Les images sortent toutes de lâĂ©cran, que ce soit sur mobile ou sur ordinateur. Y a-t-il une solution Ă cela ?
HĂ©, pourriez-vous partager quelle est votre « source dâactualitĂ©s discourse » ? Sâil sâagit dâune catĂ©gorie, les images fonctionnent comme prĂ©vu (voir ici).
Sâil sâagit dâun flux RSS, la prise en charge des images dĂ©pendra de la version du flux. Sâil sâagit de RSS 1.x, il nây a pas de prise en charge officielle des images dans les spĂ©cifications RSS 1.x, donc le plugin ne prend pas en charge les images dans ces flux.
Sâil sâagit de RSS 2.0, la prise en charge des images est fournie via la balise enclosure. Les Ă©lĂ©ments du flux auront besoin dâun attribut comme celui-ci :
<enclosure url="http://feed.com/image.jpg" length="12345" type="image/jpeg" />
Voir plus loin :
Salut. Oui, câĂ©tait ce lien de flux
La bonne nouvelle est que le flux est RSS 2.0 et contient bien des images dans une balise dâinclusion. Par consĂ©quent, elles sâaffichent comme prĂ©vu.
Jâai chargĂ© le flux sur try.thepavilion.io/news Ă titre dâexemple. Veuillez vous assurer que les paramĂštres de votre site sont les suivants :
- discourse news activé : true
- discourse news source : RSS
- discourse news rss :
https://cointelegraph.com/rss/tag/altcoin
Est-il possible de marquer un message comme actualité afin que les actualités proviennent de ce message spécifique dans un sujet ?
Meilleure explication : Sur notre forum, les membres publient rĂ©guliĂšrement des actualitĂ©s et jâaimerais appliquer une Ă©tiquette dâactualitĂ© Ă ce message pour en faire une actualitĂ©.
Le plugin prend actuellement en charge lâutilisation dâune catĂ©gorie pour la source dâactualitĂ©s, mais pas les balises.
Pour information, les balises ne sont pas des concepts de publication, elles sont au niveau du sujet, donc ce que vous demandez est difficile dans tous les cas.
Câest ce que je pensais en tapantâŠ
Existe-t-il un moyen dâidentifier une publication, autre que son identifiant, pour extraire ces publications ?


