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
Built Distribution
File details
Details for the file djangocms-conditional-0.2.1.tar.gz
.
File metadata
- Download URL: djangocms-conditional-0.2.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5de48dd11176541fb3a914c4d4b3475cdbd55a2c994d62ebefdf4595118584 |
|
MD5 | 3afcf9807044523e4c384c06f3e30d6b |
|
BLAKE2b-256 | 2025633c0acb7fd5d9595720e0ad6bcea43d07aabb6d9c122ba5e91e795b1ab4 |
File details
Details for the file djangocms_conditional-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: djangocms_conditional-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c5ca76438ff9c6d884169573467ec4c062d42c5f94d8d3e9805a87a77f62ab |
|
MD5 | 22582c7071947c5f1e0ff6b95cf5d88f |
|
BLAKE2b-256 | 0ad257ee354b84fd0b97df03db8314c06d1406ccd665574e6369362d236f8f38 |