Skip to main content

No project description provided

Project description

coverage python django djangocms4

django CMS Alias replicates and extends the alias function of django CMS version 3 for django CMS version 4.

An alias is a collection of plugins that is managed centrally. A reference can be added to any placeholder using the Alias plugin. Since the Alias plugin creates a reference any changes to the alias are immediately reflected at all places it is used.

django CMS Alias supports versioning aliases by django CMS Versioning.

Installation

Requirements

django CMS Alias requires that you have a django CMS 4 (or higher) project already running and set up.

To install

Run:

pip install git+https://github.com/django-cms/djangocms-alias@master#egg=djangocms-alias

Add djangocms_alias and parler to your project’s INSTALLED_APPS.

Run:

python manage.py migrate djangocms_alias

to perform the application’s database migrations.

Usage

Static aliases

Static aliases appear in templates and replace static placeholders which were part of django CMS up to version 3.x.

Example:

{% load djangocms_alias_tags %}
...
<footer>
  {% static_alias 'footer' %}
</footer>

Alias plugin

Alternatively, aliases can be used with the Alias plugin. It allows to select which alias content is shown at the exact position the alias plugin is placed.

Side notes

For the plugin to work out of the box {% block content %} is expected to exist in your main base.html file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-alias-2.0.1.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

djangocms_alias-2.0.1-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

Details for the file djangocms-alias-2.0.1.tar.gz.

File metadata

  • Download URL: djangocms-alias-2.0.1.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for djangocms-alias-2.0.1.tar.gz
Algorithm Hash digest
SHA256 3377a59bc074faaa4fc48a8ff71292f474bbdc04ff64fb325b00b7f2e1ef0631
MD5 935f30ffb246e1e141579bd0c027ffb6
BLAKE2b-256 2ae8afba93b9ae54218a2c3d0368033495203e167f2306bb48dc9535340e70c3

See more details on using hashes here.

File details

Details for the file djangocms_alias-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_alias-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77c931f7a61af60823997f7559da79553086b177680659d6726be0f719cd10df
MD5 1784b7e422d82b913d277b059ffb2833
BLAKE2b-256 88c39d972a84335552e70cf5f11127a22d2658cd0588ca26fa1a53d943e7881e

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