A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://docs.django-cms.org/en/latest/explanation/frontend-integration.html below:

Frontend integration - django cms 5.1.0dev1 documentation

Toggle table of contents sidebar

Frontend integration

Generally speaking, django CMS is wholly frontend-agnostic. It doesn’t care what your site’s frontend is built on or uses.

The exception to this is when editing your site, as the django CMS toolbar and editing controls use their own frontend code, and this can sometimes affect or be affected by your site’s code.

The content reloading introduced in django CMS 3.5 for plugin operations (when moving/adding/deleting etc) pull markup changes from the server. This may require a JS widget to be reinitialised, or additional CSS to be loaded, depending on your own frontend set-up.

For example, if using Less.js, you may notice that content loads without expected CSS after plugin saves.

In such a case, you can use the cms-content-refresh event to take care of that, by adding something like:

{% if request.toolbar and request.toolbar.edit_mode_active %}
    <script>
    CMS.$(window).on('cms-content-refresh', function () {
         less.refresh();
    });
    </script>
{% endif %}

after the toolbar JavaScript.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4