divio/django-cms — Issue #1071: JS errors if cms_toolbar tag is placed after placeholder tags
Author: bradenmacdonald
Created: 2011-10-27 16:52:55+00:00
State: open

The documentation says only that the cms_toolbar "templatetag should be placed somewhere within the body of the HTML (within `

...

`)." However, I find that if I place that tag *after* any placeholder tags, the placeholder tags add javascript to the sekizai block before the CMS jquery and javascript get loaded, resulting in "CMS.placeholder undefined" or "jQuery undefined" error messages.

If my template has ` {% placeholder some_placeholder %} {% cms_toolbar %}`, the Javascript in the sekizai block looks like this:

```

```

If my template has ` {% cms_toolbar %} {% placeholder some_placeholder %}`, the javascript tags in Sekizai get output in the correct order and there are no errors.