Manual:$wgSitemapNamespacesPriorities

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Namespaces: $wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
Introduced in version: 1.19.0 (r95320)
Removed in version: still in use
Allowed values: array or false
Default value: false
Other settings: Alphabetical | By function

Details[edit]

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

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

$wgSitemapNamespacesPriorities = array(
    NS_USER => '0.9',
    NS_HELP => '0.0',
);