Last modified: 2011-08-23 19:37:05 UTC
Created attachment 8915 [details] Patch for adding priority customisation in generateSitemap.php maintenance script As we have a $wgSitemapNamespaces array variable, I would suggest to add a similar associative array for tuning priorities (apart from the default ones). Usage: $wgSitemapNamespacesPriorities = array(NS_MAIN => '0.9', NS_TALK => '0.1', NS_CUSTOM => '1.0', NS_CATEGORY => '0.5', NS_USER => '0.7', NS_USER_TALK => '0.1');
Related, but not strictly a dupe: bug 16742.
Thank you very much for the patch you contributed, it has been applied with some modifications in r95320 . Mainly, when adding configuration options it's important to add them to DefaultSettings.php so they can be accounted for and documented. Also, MediaWiki has some specific guidelines about code formatting which are documented here: http://www.mediawiki.org/wiki/Manual:Coding_conventions But thank you for providing a bug report and patch for us, it benefits everyone. Hope to see more in the future from you :)