News Plugin v0.2

Task list

  1. New feed sources:
    • RSS
    • More than one category
  2. Display options:
    • A ‘featured’ news item
  3. Format and layout improvements:
    • Formatting support
    • Character limit
  4. New functionality
    • Like button
    • Total replies
    • Category of the post
  5. Other improvements
    • Filter pinned topics
    • Highlight news link on hover

RSS Support.

  • News feed source can be selected with the discourse news source site setting: ‘category’ or ‘rss’

  • RSS url can be set with the discourse news rss site setting

  • RSS feed currently:

    • Displays the title property of the RSS item as the news item title, linked with the RSS item link property.
    • Displays the description property of the RSS item as the news item body.
    • Adds the RSS item link as the share source.

Example: https://thepavilion.io/news

Currently set to this feed: The Age - Latest News

1 Like

hi,

Angus, i added the below feed :
https://blog.francetvinfo.fr/bureau-londres/feed

i have this :

You can have a look here : Français à Londres

Also an image will be added ?

Many thanks

1 Like

Thanks for the report. I’ll take a look at the issue tomorrow.

I’ll also add in the image if the feed supports them (many feeds don’t include images).

1 Like

@jeremielondon I’ve updated the RSS parser so that that feed will work. The feed you linked is live on this sandbox with the updated code.

https://thepavilion.io/news

It looks like that feed is embedding images using “Enclosure” tags. I’ll have to add custom support for that method of displaying images.

Will give another update on Wednesday of next week.

Another update here!

Today I’ve pushed a complete revamped RSS Parser, which includes image parsing and caching of RSS feeds for faster display. I’ve also pushed formatting support and two settings:

  • discourse news excerpt length; and
  • discourse news meta

This brings the overall list to:

  1. New feed sources:
    • RSS
    • More than one category
  2. Display options:
    • A ‘featured’ news item
  3. Format and layout improvements:
    • Formatting support
    • Character limit
  4. New functionality
    • Like button* (in progress)
    • Total replies
    • Category of the post
  5. Other improvements
    • Filter pinned topics
    • Highlight news link on hover

Live on this sandbox.

2 Likes

@jeremielondon I’ve just pushed a fix for the bug you reported

I’ve also pushed:

  • More than one category
  • Highlight news link on hover
  • Like button

Remaining items:

  • Featured news item
  • Filter pinned topics

One way we can handle ‘Featured’ news item is by using the ‘pinned’ feature, i.e. you pin a topic in the normal topic list to feature it in the News list. Merlls and Hiryuu, thoughts on this? (I believe you asked for this feature).


Running status on v0.2 work:

  1. New feed sources:
    • RSS
    • More than one category
  2. Display options:
    • A ‘featured’ news item
  3. Format and layout improvements:
    • Formatting support
    • Character limit
  4. New functionality
    • Like button
    • Total replies
    • Category of the post
  5. Other improvements
    • Filter pinned topics
    • Highlight news link on hover

Guys, do you support modifications to the News Plugin to make it look more like?

https://www.elektronauts.com/news

From what I can see you’ve been planning to make those exact changes but in the end did it go through?

Hey @Juless,

You can use the news plugin to achieve the Elektronauts look, but it would require a theme component to handle styling.

How could this be solved?

Hi Jules we could estimate a job for this if you like.

sure.

1 Like

@Juless Hey, I’ve recently updated this plugin. Take a look and let me know what changes you’d like to implement it on your own forum.

2 Likes