On 20/05/06, Ken McDonald ken@pixologic.com wrote:
Some pages will never be editable by users. We don't want to use a separate namespace to separate user-editable vs. non-editable content, so simply using page protection seems like the way to go. Is there a way of batch protecting our initial pages? (Converted from MoinMoin). We don't have so many that this is necessary, but it would be nice to avoid setting protections for each by hand.
Bulk-update the page table, setting the page_restrictions field?
I also notice that my local experimental MW setup (under OS X) seems to have a limited range of protections that can be assigned to a page; in particular, my protect options only seems to know about sysops, unregistered users, and registered users. If I understand correctly, MW comes with various other groups (eg. bureaucrats) defined. Is there way to protect a a page so that it can, for example, be edited by sysops and bureaucrats but not by other users?
See $wgRestrictionLevels.
Rob Church