You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Use grouper admin to resolve usability issues (#167)
* feat: grouper admin
* Update to new GrouperModelAdmin
* Update to match latest cms.admin.utils
* Fix message, isort, flake8 and transifex integration
* Remove unneeded svg
* Update tests
* Run tests on any branch
* Update test dependencies
* Update readme, add created by and modified fields in versioned change list
* Fix: MySql annotation error
* Flipped lines fixed
* Fix: alias content admin redirect
* Add some type hints
* fix isort
* Update changelog
* add messages
* fix isort
* Fix missing icons
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* fix flake8
* Fix static alias language detection bug
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Fix flake8
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Adjust tests
* fix pre-commit.ci
* Remove get_versioning_state from admin list_display
* Update changelog
* Fix: get_langauge_from_request to get the language of toolbar object does not have one.
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Create alias content warning-free
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Django 4.2 compatibility
* Refactor
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Fix lint errors
* Remove unused admin filter and tests
* Update translations
* Fix cms config
* ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
* Update test requirements
* Undo change to site selection logic
* update messages, simplify alias plugin ui, update tests
* fix flake8
* Fix: Typo in jquery selector
* Update some comments
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.rst
+21-7Lines changed: 21 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,9 @@ django CMS Alias
6
6
7
7
|coverage| |python| |django| |djangocms4|
8
8
9
-
django CMS Alias replicates and extends the alias function of django CMS version 3
10
-
for django CMS version 4.
9
+
django CMS Alias replicates and extends the alias function of django CMS version 3 for django CMS version 4.
11
10
12
-
An alias is a collection of plugins that is managed centrally. A reference
13
-
can be added to any placeholder using the Alias plugin. Since the Alias plugin
14
-
creates a reference any changes to the alias are immediately reflected at all
15
-
places it is used.
11
+
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.
16
12
17
13
django CMS Alias supports versioning aliases by django CMS Versioning.
18
14
@@ -53,13 +49,31 @@ to perform the application's database migrations.
53
49
Usage
54
50
=====
55
51
52
+
Static aliases
53
+
==============
54
+
55
+
Static aliases appear in templates and replace static placeholders which were part of django CMS up to version 3.x.
56
+
57
+
Example::
58
+
59
+
{% load djangocms_alias_tags %}
60
+
...
61
+
<footer>
62
+
{% static_alias 'footer' %}
63
+
</footer>
64
+
65
+
Alias plugin
66
+
============
67
+
68
+
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.
0 commit comments