Merge pull request #279 from nephila/docs/multisite
Improve multisite documentation
This commit is contained in:
commit
f752a56092
1 changed files with 14 additions and 5 deletions
|
@ -37,14 +37,23 @@ Multisite
|
||||||
|
|
||||||
django CMS blog provides full support for multisite setups.
|
django CMS blog provides full support for multisite setups.
|
||||||
|
|
||||||
|
Basic multisite
|
||||||
|
^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
To enabled basic multisite add ``BLOG_MULTISITE = True`` to the project settings.
|
||||||
|
|
||||||
Each blog post can be assigned to none, one or more sites: if no site is selected, then
|
Each blog post can be assigned to none, one or more sites: if no site is selected, then
|
||||||
it's visible on all sites.
|
it's visible on all sites. All users with permission on the blog can manage all the blog
|
||||||
|
posts, whichever the sites are.
|
||||||
|
|
||||||
This is matched with and API that allows to restrict users to only be able to edit
|
Multisite permissions
|
||||||
blog posts only for some sites.
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
To implement this API, you must add a ``get_sites`` method on the user model which
|
Multisite permissions allow to restrict users to only manage the blog posts for the
|
||||||
returns a queryset of sites the user is allowed to add posts to.
|
sites they are enabled to
|
||||||
|
|
||||||
|
To implement the multisite permissions API, you must add a ``get_sites`` method on
|
||||||
|
the user model which returns a queryset of sites the user is allowed to add posts to.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue