Manual:$wgSitemapNamespacesPriorities

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<translate> Search</translate>: $wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
<translate> Introduced in version:</translate>1.19.0 (r95320)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array) or false
<translate> Default value:</translate>false

Details

Custom namespace priorities for sitemaps. Setting this will allow you to set custom priorities to namespaces when sitemaps are generated using the maintenance/generateSitemap.php script.

This should be a map of namespace IDs to priority. Example:

$wgSitemapNamespacesPriorities = [
    NS_USER => '0.9',
    NS_HELP => '0.1'
];

See also