Skip to main content

django CMS plugin that shows content based on user group membership.

Project description

Latest Travis CI build status 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

  1. Install djangocms-conditional:: 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

djangocms-conditional-0.2.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

djangocms_conditional-0.2.1-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djangocms-conditional-0.2.1.tar.gz.

File metadata

File hashes

Hashes for djangocms-conditional-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bc5de48dd11176541fb3a914c4d4b3475cdbd55a2c994d62ebefdf4595118584
MD5 3afcf9807044523e4c384c06f3e30d6b
BLAKE2b-256 2025633c0acb7fd5d9595720e0ad6bcea43d07aabb6d9c122ba5e91e795b1ab4

See more details on using hashes here.

File details

Details for the file djangocms_conditional-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_conditional-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38c5ca76438ff9c6d884169573467ec4c062d42c5f94d8d3e9805a87a77f62ab
MD5 22582c7071947c5f1e0ff6b95cf5d88f
BLAKE2b-256 0ad257ee354b84fd0b97df03db8314c06d1406ccd665574e6369362d236f8f38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page