django CMS plugin that shows content based on user group membership.
Project description
===============
djangocms-conditional
===============
.. image:: https://pypip.in/v/djangocms-conditional/badge.png
:target: https://pypi-hypernode.com/pypi/djangocms-conditional
:alt: Latest PyPI version
.. image:: https://pypip.in/d/djangocms-conditional/badge.png
:target: https://pypi-hypernode.com/pypi/djangocms-conditional
:alt: Monthly downloads
.. image:: https://travis-ci.org/rhooper/djangocms-conditional.png?branch=master
:target: https://travis-ci.org/rhooper/djangocms-conditional
:alt: Latest Travis CI build status
.. image:: https://coveralls.io/repos/rhooper/djangocms-conditional/badge.png
:target: https://coveralls.io/r/rhooper/djangocms-conditional
:alt: Test coverage
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::
1. pip install djangocms-conditional
2. Add "djangocms_conditional" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'djangocms_conditional',
]
3. 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.
djangocms-conditional
===============
.. image:: https://pypip.in/v/djangocms-conditional/badge.png
:target: https://pypi-hypernode.com/pypi/djangocms-conditional
:alt: Latest PyPI version
.. image:: https://pypip.in/d/djangocms-conditional/badge.png
:target: https://pypi-hypernode.com/pypi/djangocms-conditional
:alt: Monthly downloads
.. image:: https://travis-ci.org/rhooper/djangocms-conditional.png?branch=master
:target: https://travis-ci.org/rhooper/djangocms-conditional
:alt: Latest Travis CI build status
.. image:: https://coveralls.io/repos/rhooper/djangocms-conditional/badge.png
:target: https://coveralls.io/r/rhooper/djangocms-conditional
:alt: Test coverage
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::
1. pip install djangocms-conditional
2. Add "djangocms_conditional" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'djangocms_conditional',
]
3. 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.1.2.tar.gz
.
File metadata
- Download URL: djangocms-conditional-0.1.2.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ceb77a5fdd1ae7954ad794d4b581d4d43d39fd7cd3ffb2a88f237b95a52d27e |
|
MD5 | 27fa40e3698682da84da9d4040132364 |
|
BLAKE2b-256 | 13591895a7e9bc8bd69accb8b4d62e9c7d9939359ce3379710067aae3efdb99f |