]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__/comment_1_8e34b10699bed1b53b6c929ed1e9f19c._comment
(no commit message)
[git.ikiwiki.info.git] / doc / forum / Can_ikiwiki_be_configured_as_multi_user_blog__63__ / comment_1_8e34b10699bed1b53b6c929ed1e9f19c._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="It's a wiki: any editor can have as many blogs as they want"
5  date="2013-07-17T08:17:05Z"
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, with a [[ikiwiki/PageSpec]] pointing to pages (blog posts) in a
11 directory where they can create pages.
13 If you want a limited set of users to be able to edit the wiki without
14 making them full wiki admins, you can use [[plugins/lockedit]]:
16     locked_pages: * and !(user(bob) or user(chris))
18 or if you want \"most\" users to only be able to write on their own blog, and
19 not on other users' blogs (for instance: Alice the wiki admin can edit
20 anything, but Bob can only edit `users/bob/...` and Chris can only edit
21 `users/chris/...`) then you can use [[plugins/lockedit]], something like:
23     locked_pages: * and !(user(bob) and (users/bob or users/bob/*)) and !(user(chris) and (users/chris or users/chris/*))
25 (Wiki admins can always edit locked pages.)
27 If you have lots of users and you know a bit of Perl, you might want
28 to [[write a plugin|plugins/write]] that adds a function-like
29 [[ikiwiki/PageSpec]] like `owndirectory(users)`, which would match if
30 there is a logged-in user and the page being edited is equal to or
31 a subpage of their directory in users.
32 """]]