Page MenuHomePhabricator

Add feed export format (RSS & Atom)
Closed, ResolvedPublic


RSS would be a good query result format to add, so that wiki content can more easily be syndicated elsewhere.

MediaWiki has built-in renderers for Atom and RSS, so both can be supported.

The query options should be along the lines of:

{{#cargo_query: tables = posts
| fields = _pageName, publication_date, description, author
| format = feed
| feed type = rss
| feed title = News From Nowhere
| feed description = Lorem ipsum.
| link text = Subscribe to news

It'll use the first date field found for the publication date. The title should be _pageName or a field with alias title.

Event Timeline

@Yaron_Koren I'm happy to work on this; do you think it's a good idea?

As a Cargo user, I agree that it would be a good idea.

Currently I turn a Cargo query (with "ul" result format) into an RSS feed with the archived Extension:Bullet_Feed. That extension didn't work properly in the first place, and I've had to modify it with nearly every MW upgrade for years, so it would be easier to have this functionality built into Cargo itself.

Yes, I agree with this too! I don't remember anyone asking about this before, but (clearly) that doesn't mean that no one is interested in it. @Samwilson - if you're willing to create the format(s) for it, that would be great.

Is anyone still using Atom? Maybe they are; I have no idea.

Samwilson renamed this task from Add RSS and Atom feed export formats to Add RSS feed export format.Aug 6 2020, 10:23 PM
Samwilson updated the task description. (Show Details)

Great! And yeah, I'll start with RSS and we can see if there's any need for Atom later.

Did you make any headway on adding RSS as an export format for Cargo?

No not yet I'm afraid. But it's still on my mind!

I would love to use it in early 2023 for MediaWiki Blogs which seems to be best created with Cargo.

Samwilson renamed this task from Add RSS feed export format to Add feed export format (RSS & Atom).Feb 9 2023, 2:14 AM
Samwilson claimed this task.
Samwilson updated the task description. (Show Details)

Change 888110 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Cargo@master] Add new 'feed' display format

Change 888110 merged by jenkins-bot:

[mediawiki/extensions/Cargo@master] Add new 'feed' display format