Last modified: 2011-08-23 19:37:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32344, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30344 - Add priority tuning for generating Sitemaps
Add priority tuning for generating Sitemaps
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-12 16:08 UTC by Toni Hermoso Pulido
Modified: 2011-08-23 19:37 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch for adding priority customisation in generateSitemap.php maintenance script (745 bytes, patch)
2011-08-12 16:08 UTC, Toni Hermoso Pulido
Details

Description Toni Hermoso Pulido 2011-08-12 16:08:03 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');
Comment 1 Chad H. 2011-08-12 16:15:32 UTC
Related, but not strictly a dupe: bug 16742.
Comment 2 John Du Hart 2011-08-23 19:37:05 UTC
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 :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links