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.1.4.tar.gz (12.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for djangocms-conditional-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b5bfc0b6a1dcf4139175dec4e19f8346b64394caecb24973fa7430499d6e489f
MD5 565416787503586f084570ab1191c281
BLAKE2b-256 2f23028ce6a64b89a752691cd80f9dad28cd77c2e0b49e42fb13866ce47acf4a

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