]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Added a comment: It's a wiki
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Wed, 17 Jul 2013 08:08:59 +0000 (04:08 -0400)
committeradmin <admin@branchable.com>
Wed, 17 Jul 2013 08:08:59 +0000 (04:08 -0400)
doc/forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__/comment_1_223a8061b9a4cd45da927ff088f6b0b8._comment [new file with mode: 0644]

diff --git a/doc/forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__/comment_1_223a8061b9a4cd45da927ff088f6b0b8._comment b/doc/forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__/comment_1_223a8061b9a4cd45da927ff088f6b0b8._comment
new file mode 100644 (file)
index 0000000..9701140
--- /dev/null
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="http://smcv.pseudorandom.co.uk/"
+ nickname="smcv"
+ subject="It's a wiki"
+ date="2013-07-17T08:08:50Z"
+ content="""
+Ikiwiki is a wiki, so you can certainly have multiple users. Any user
+with appropriate access can create any number of blogs: they just need
+to put an [[ikiwiki/directive/inline]] directive on any page they can
+edit.
+
+If you want \"most\" users to *only* be able to write on their own blog,
+and not on other users' blogs (for instance: Alice the wiki admin
+can edit anything, but Bob can only edit /users/bob/... and Chris can
+only edit /users/chris/...) then you can use [[plugins/lockedit]],
+something like:
+
+    locked_pages: * and !(user(bob) and (users/bob or users/bob/*)) and !(user(chris) and (users/chris or users/chris/*))
+
+(Wiki admins can always edit locked pages.)
+
+If you have lots of users and you know a bit of Perl, you might want to
+[[plugins/write|write a plugin]] that adds a function-like [[ikiwiki/PageSpec]]
+like `owndirectory(users)`, which would match if there is a logged-in user
+and the page being edited is equal to or a subpage of their directory in
+`users`.
+"""]]