2008-07-21 13:31:57 +02:00
|
|
|
[[!template id=plugin name=lockedit core=1 author="[[Joey]]"]]
|
2012-03-26 17:03:35 +02:00
|
|
|
[[!tag type/auth type/comments]]
|
2007-02-02 03:33:03 +01:00
|
|
|
|
2008-10-08 23:09:24 +02:00
|
|
|
This plugin allows the administrator of a wiki to lock some pages, limiting
|
|
|
|
who can edit them using the online interface. This doesn't prevent anyone
|
|
|
|
who can commit to the underlying revision control system from editing the
|
2008-12-26 21:06:00 +01:00
|
|
|
pages, however. (Unless you set up [[tips/untrusted_git_push]].)
|
2008-10-08 23:09:24 +02:00
|
|
|
|
|
|
|
The `locked_pages` setting configures what pages are locked. It is a
|
|
|
|
[[ikiwiki/PageSpec]], so you have lots of control over what kind of pages
|
|
|
|
to lock. For example, you could choose to lock all pages created before
|
|
|
|
2006, or all pages that are linked to from the page named "locked". More
|
|
|
|
usually though, you'll just list some names of pages to lock.
|
|
|
|
|
2010-02-06 22:19:17 +01:00
|
|
|
If you want to lock down a blog so only you can post to it, you can just
|
|
|
|
lock "*", and enable the [[opendiscussion]] plugin, so readers can still post
|
|
|
|
[[comments]].
|
2008-12-12 20:52:05 +01:00
|
|
|
|
2008-10-08 23:47:38 +02:00
|
|
|
Wiki administrators can always edit locked pages. The [[ikiwiki/PageSpec]]
|
|
|
|
can specify that some pages are not locked for some users. For example,
|
|
|
|
"important_page and !user(joey)" locks `important_page` while still
|
|
|
|
allowing joey to edit it, while "!*/Discussion and user(bob)" prevents bob
|
|
|
|
from editing pages except for Discussion pages.
|