{% cms_toolbar %} does not work inside a {% block ... %}
See original GitHub issueI tried this in base.html:
<html>
...
</html>
<body>
{% block body_init %}{% endblock %}
...
…and combined it with base_cms.html
{% extends "base.html" %}
{% load cms_tags %}
{% block body_init %}{% cms_toolbar %}{% endblock %}
But I got:
TemplateSyntaxError at /
Invalid block tag: 'endblock'
The problem is that I wanted a base.html that is not dependent on django-cms… I can work around the problem by not caring… but it’d still be nice to be able to host a site where the mother of all templates is not django-cms dependent.
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
{% cms_toolbar %} does not work inside a {% block ... %} #3146
Hi, I don't understand the sentence "So a way may be to have your base.html and a cms_base.html with toolbar that extends base.html"...
Read more >Toggle Structure in Django-cms toolbar is Disabled
Toggle Structure in Django-cms toolbar is Disabled ... Problem: CMS-toolbar is hiding Navigation bar menus & it's now disabled(not moving up).
Read more >CAnnot edit block due to interface problems - Concrete CMS
There appears to be an issue editing the block with my custom theme. I have no such issues with autonav. As far as...
Read more >Remove toolbar from specific category products added as a ...
Go to your theme and locate app/design/frontend/ [ your interface name] / [your theme name] /template/catalog/product/list.phtml.
Read more >Content blocks - Sitefinity CMS Content management
To open the page, in the toolbar, click Content » Content blocks. Create content blocks. To create a content block: Navigate to Content...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure if this is still relevant, but I came up with a solution.
Create a single “cms_toolbar.html” file with only this inside:
Then, when I want it in one of my many “base.html” files, I call it with an include like so:
Seems to work fine in Django 1.8.3 / Django CMS 3.1.2
thanks for a possible solution @CDAugDev