Is there a placeholder that indicates if the page is in edit mode or not? Something like

{% is_edit_mode %}?

I couldn't find anything in djangocms documentation.

有帮助吗?

解决方案

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

其他提示

In django cms 3.8 it's now

{{ request.toolbar.edit_mode_active }}

See http://docs.django-cms.org/en/latest/reference/toolbar.html#cms.toolbar.toolbar.CMSToolbar.edit_mode_active

you can see it from ?edit parameter in URL

This works with 2.x

{% if 'edit' in request.GET %}
    {% placeholder content %}
{% endif %}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top