Django CMS - Placeholder for edit mode

Is there a placeholder that indicates whether the page is in edit mode or not? Sort of

{% is_edit_mode %}?

I did not find anything in the djangocms documentation .

+4
source share
3 answers

in 3.0: {{request.toolbar.edit_mode}}

+15
source

you can see it using the parameter ?editin the url

0
source

It works with 2.x

{% if 'edit' in request.GET %}
    {% placeholder content %}
{% endif %}
0
source

Source: https://habr.com/ru/post/1534036/


All Articles