]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__/comment_1_223a8061b9a4cd45da927ff088f6b0b8._comment
Added a comment: It's a wiki
[ikiwiki.git] / doc / forum / Can_ikiwiki_be_configured_as_multi_user_blog__63__ / comment_1_223a8061b9a4cd45da927ff088f6b0b8._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="It's a wiki"
5  date="2013-07-17T08:08:50Z"
6  content="""
7 Ikiwiki is a wiki, so you can certainly have multiple users. Any user
8 with appropriate access can create any number of blogs: they just need
9 to put an [[ikiwiki/directive/inline]] directive on any page they can
10 edit.
11
12 If you want \"most\" users to *only* be able to write on their own blog,
13 and not on other users' blogs (for instance: Alice the wiki admin
14 can edit anything, but Bob can only edit /users/bob/... and Chris can
15 only edit /users/chris/...) then you can use [[plugins/lockedit]],
16 something like:
17
18     locked_pages: * and !(user(bob) and (users/bob or users/bob/*)) and !(user(chris) and (users/chris or users/chris/*))
19
20 (Wiki admins can always edit locked pages.)
21
22 If you have lots of users and you know a bit of Perl, you might want to
23 [[plugins/write|write a plugin]] that adds a function-like [[ikiwiki/PageSpec]]
24 like `owndirectory(users)`, which would match if there is a logged-in user
25 and the page being edited is equal to or a subpage of their directory in
26 `users`.
27 """]]