django CMS plugin that shows content based on user group membership.
Django CMS plugin that shows content if a user is logged in and a member of a specific Django group.
The full documentation is at https://djangocms-conditional.readthedocs.org
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.
Shows and hides child plugins according to group membership, as configured in the plugin instance.
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.
- First release on PyPi.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size djangocms_conditional-0.2.1-py2.py3-none-any.whl (7.4 kB)||File type Wheel||Python version 3.6||Upload date||Hashes View|
|Filename, size djangocms-conditional-0.2.1.tar.gz (13.3 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for djangocms_conditional-0.2.1-py2.py3-none-any.whl
Hashes for djangocms-conditional-0.2.1.tar.gz