News Plugin 📰

Follow the steps here and pull from this link GitHub - paviliondev/discourse-news: Adds a news stream to your Discourse instance

2 „GefĂ€llt mir“

Is it possible to add multiple feeds from different sources. It seems like we can add only one XML from only one source.

2 „GefĂ€llt mir“

Hey @Pravi, thanks for using the plugin.

No, it is not currently possible to add multiple feeds.

1 „GefĂ€llt mir“

Any future update on multiple feeds?

2 „GefĂ€llt mir“

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!

2 „GefĂ€llt mir“

Sorry, this isn’t a solution, but those should just lazy load and show a static image before playing.

2 „GefĂ€llt mir“

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.

1 „GefĂ€llt mir“

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.

2 „GefĂ€llt mir“

That’s a feature request.

1 „GefĂ€llt mir“

You can’t. But it is a feature that should be in use nowadays anyway. So, hopefully devs of Discourse come to modern time :wink:

(No, I don’t know how difficult it would be, but nearly every other platforms use it, and for reason)

2 „GefĂ€llt mir“

Actually, it’s a fairly trivial change that doesn’t need to involve the Discourse team, which I’ve gone ahead and made:

IMPROVE: rename raw templates and add lazy loading for thumbnail · paviliondev/discourse-news@6150851 (github.com)

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)

@angus

5 „GefĂ€llt mir“

Hallo, ich habe gerade das Plugin installiert und es ist eine neue Website, die das Standardthema verwendet. Die Bilder sind sowohl auf MobilgerĂ€ten als auch auf Desktops nicht auf dem Bildschirm. Gibt es dafĂŒr eine Lösung?

1 „GefĂ€llt mir“

Hallo, könnten Sie bitte mitteilen, was Ihre „Diskurs-Nachrichtenquelle“ ist? Wenn es sich um eine Kategorie handelt, funktionieren Bilder wie erwartet (siehe hier).

Wenn es sich um einen RSS-Feed handelt, hĂ€ngt die BildunterstĂŒtzung davon ab, welche Version des Feeds es ist. Wenn es sich um RSS 1.x handelt, gibt es keine offizielle BildunterstĂŒtzung in den RSS 1.x-Spezifikationen, daher unterstĂŒtzt das Plugin keine Bilder in diesen Feeds.

Wenn es sich um RSS 2.0 handelt, wird die BildunterstĂŒtzung ĂŒber das enclosure-Tag bereitgestellt. Die Feed-Elemente benötigen ein Attribut wie dieses:

<enclosure url="http://feed.com/image.jpg" length="12345" type="image/jpeg" />

Weitere Informationen finden Sie hier:

2 „GefĂ€llt mir“

Hallo. Ja, es war dieser Feed-Link

1 „GefĂ€llt mir“

Die gute Nachricht ist, dass der Feed RSS 2.0 ist und tatsÀchlich Bilder in einem Enclosure-Tag enthÀlt. Daher werden sie wie erwartet angezeigt.

Ich habe den Feed als Beispiel unter try.thepavilion.io/news geladen. Bitte stellen Sie sicher, dass Sie die folgenden Website-Einstellungen haben:

  • Discourse-Nachrichten aktiviert: true
  • Discourse-Nachrichtenquelle: RSS
  • Discourse-Nachrichten-RSS: https://cointelegraph.com/rss/tag/altcoin

1 „GefĂ€llt mir“

Ist es möglich, einen Beitrag als „Nachrichten“ zu kennzeichnen, damit die Nachrichten aus diesem bestimmten Beitrag in einem Thema stammen?

Bessere ErklĂ€rung: In unserem Forum posten Mitglieder regelmĂ€ĂŸig Nachrichten und ich möchte diesen Beitrag mit dem Schlagwort „Nachrichten“ versehen, um ihn als Nachricht zu kennzeichnen.

1 „GefĂ€llt mir“

Das Plugin unterstĂŒtzt derzeit die Verwendung einer Kategorie fĂŒr die Nachrichtenquelle, jedoch keine Tags.

2 „GefĂ€llt mir“

Nur um darauf hinzuweisen, dass Tags keine Post-Konzepte sind, sondern auf Topic-Ebene liegen. Was Sie also verlangen, ist in jedem Fall eine Herausforderung.

2 „GefĂ€llt mir“

Das habe ich mir auch gedacht, als ich das getippt habe


Gibt es eine Möglichkeit, einen Beitrag (außer der Beitrags-ID) zu identifizieren, um diese BeitrĂ€ge zu extrahieren?

1 „GefĂ€llt mir“

Ich habe diese Einstellungen aktiviert. Und das Standardthema mit dem Topic Previews-Plugin ebenfalls. Das sehe ich.

1 „GefĂ€llt mir“