django CMS plugin that shows content based on user group membership.
Project description
Django CMS plugin that shows content if a user is logged in and a member of a specific Django group.
Documentation
The full documentation is at https://djangocms-conditional.readthedocs.org
Quickstart
Install djangocms-conditional:: pip install djangocms-conditional
Add “djangocms_conditional” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'djangocms_conditional', ]
Run python manage.py migrate to create the djangocms_conditional models.
Features
Shows and hides child plugins according to group membership, as configured in the plugin instance.
Caveats
This plugin only prevents rendering of plugins, just like djangocms-timer, and is subject to the same limitations:
In its current form, plugin won’t save you from the queries to retrieve child plugins due to the way plugin rendering works in django CMS. Still, the render method of child plugins is not executed (and grandchildren plugins are not retrieved) with mitigating effect on performance hit.
History
0.1.2 (2018-01-01)
First release on PyPi.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file djangocms-conditional-0.2.0.tar.gz
.
File metadata
- Download URL: djangocms-conditional-0.2.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99e90bc40a1f52509e0d0c2fc0d2093d448981be2b790f4be5edba5d81897f20 |
|
MD5 | a0a464d0fc6b37fcdf194e17507e756e |
|
BLAKE2b-256 | da828e46acb655e7057658148c81d6e6bb53854a7458c1c84668b451b8e377e9 |