commit
f2df915a13
14
README.md
14
README.md
|
|
@ -460,7 +460,7 @@ plugin_pool.register_plugin(CMSCarouselPlugin)
|
||||||
The contents of `sortable-stacked-inline-change-form.html` at a minimum need to extend
|
The contents of `sortable-stacked-inline-change-form.html` at a minimum need to extend
|
||||||
the extrahead block with:
|
the extrahead block with:
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
{% extends "admin/cms/page/plugin_change_form.html" %}
|
{% extends "admin/cms/page/plugin_change_form.html" %}
|
||||||
{% load static from staticfiles %}
|
{% load static from staticfiles %}
|
||||||
|
|
||||||
|
|
@ -477,39 +477,39 @@ the extrahead block with:
|
||||||
|
|
||||||
Sorting within Django-CMS is really only feasible for inline models of a plugin as Django-CMS already includes sorting for plugin instances. For tabular inlines, just substitute:
|
Sorting within Django-CMS is really only feasible for inline models of a plugin as Django-CMS already includes sorting for plugin instances. For tabular inlines, just substitute:
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
<script src="{% static 'adminsortable/js/admin.sortable.stacked.inlines.js' %}"></script>
|
<script src="{% static 'adminsortable/js/admin.sortable.stacked.inlines.js' %}"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
with:
|
with:
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
<script src="{% static 'adminsortable/js/admin.sortable.tabular.inlines.js' %}"></script>
|
<script src="{% static 'adminsortable/js/admin.sortable.tabular.inlines.js' %}"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
From ``django-cms 3.x`` the path of change_form.html has changed. Replace the follwing line:
|
From ``django-cms 3.x`` the path of change_form.html has changed. Replace the follwing line:
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
{% extends "admin/cms/page/plugin_change_form.html" %}
|
{% extends "admin/cms/page/plugin_change_form.html" %}
|
||||||
```
|
```
|
||||||
|
|
||||||
with
|
with
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
{% extends "admin/cms/page/plugin/change_form.html" %}
|
{% extends "admin/cms/page/plugin/change_form.html" %}
|
||||||
```
|
```
|
||||||
|
|
||||||
From ``django-admin-sortable 2.0.13`` the ``jquery.django-csrf.js`` was removed and you have to include the snippet-template.
|
From ``django-admin-sortable 2.0.13`` the ``jquery.django-csrf.js`` was removed and you have to include the snippet-template.
|
||||||
Change the following line:
|
Change the following line:
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
<script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script>
|
<script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
to
|
to
|
||||||
|
|
||||||
```html
|
```html+django
|
||||||
{% include 'adminsortable/csrf/jquery.django-csrf.html' with csrf_cookie_name='csrftoken' %}
|
{% include 'adminsortable/csrf/jquery.django-csrf.html' with csrf_cookie_name='csrftoken' %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue