in 3.0: {{ request.toolbar.edit_mode }}
Django CMS - Placeholder for edit mode
-
23-06-2023 - |
Question
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.
La solution
Autres conseils
In django cms 3.8 it's now
{{ request.toolbar.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 %}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow