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.
Release files for djangocms-conditional 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djangocms-conditional-0.2.1.tar.gz | 13.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djangocms_conditional-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.7 kB
Release files / djangocms-conditional-0.2.1.tar.gz
| Download URL | djangocms-conditional-0.2.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc5de48dd11176541fb3a914c4d4b3475cdbd55a2c994d62ebefdf4595118584
|
|
BLAKE2b-256 checksum How to use checksums |
2025633c0acb7fd5d9595720e0ad6bcea43d07aabb6d9c122ba5e91e795b1ab4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / djangocms_conditional-0.2.1-py2.py3-none-any.whl
| Download URL | djangocms_conditional-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
38c5ca76438ff9c6d884169573467ec4c062d42c5f94d8d3e9805a87a77f62ab
|
|
BLAKE2b-256 checksum How to use checksums |
0ad257ee354b84fd0b97df03db8314c06d1406ccd665574e6369362d236f8f38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |