No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file djangocms-alias-2.0.0.tar.gz
.
File metadata
- Download URL: djangocms-alias-2.0.0.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c835c90214bde8032de2a8010ca2edf4975e3155f0df55977bab248f7e15c0 |
|
MD5 | 72f904f51dfd47cc262c05a72bb0fad2 |
|
BLAKE2b-256 | 6bf6d3339df1794006e60103506afbdc8f5a34fda6c66c1837389a31313b76ac |
File details
Details for the file djangocms_alias-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: djangocms_alias-2.0.0-py3-none-any.whl
- Upload date:
- Size: 88.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3a77cdc5c8a2871f3770c2e495623f4ed7013a0a0e10a3ecd6736d4f7d34ce |
|
MD5 | 4b8a2cf7ce15bf1ef67a1ec6a71d6827 |
|
BLAKE2b-256 | eab3a76082f965da974f052ee87808228a8a8caf55b678569a54627869432520 |