Manual:$wgOverrideSiteFeed

From Linux Web Expert

Revision as of 22:58, 3 July 2020 by imported>Shirayuki (dummy edit to update translation pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Feed</translate>: $wgOverrideSiteFeed
Override the site's default rss/atom feed that appears on every page.
<translate> Introduced in version:</translate>1.14.0 (r38831)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>[]

Details

Override the site's default rss/atom feed that appears on every page.

Some sites might have a different feed they would like to promote instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).

Example:

$wgOverrideSiteFeed['format'] = "http://example.com/somefeed.xml";

Format can be one of either 'rss' or 'atom'.

$wgFeed needs to be enabled to use this feature.