Django CMS 3.0.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hardcode your footer into the template, but it would be nicer to be able to manage it through the CMS add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base.html). Place it at the bottom of the HTML body: <footer> {% static_placeholder static_placeholder 'footer' %} footer> Save the template and return to your browser. Change to Draft and then Structure mode and add some content to it. After you’ve saved it, you’ll see that it appears0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.1.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hardcode your footer into the template, but it would be nicer to be able to manage it through the CMS add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base.html). Place it at the bottom of the HTML body: <footer> {% static_placeholder static_placeholder 'footer' %} footer> Save the template and return to your browser. Change to Draft and then Structure mode and add some content to it. After you’ve saved it, you’ll see that it appears0 码力 | 200 页 | 1.63 MB | 1 年前3
Django CMS 3.11.10 Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the CMS static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base {% load djangocms_alias_tags %} {% block content %} <footer> {% static_alias 'footer' %} footer> {% endblock content %} Save the template and return to your0 码力 | 493 页 | 1.44 MB | 6 月前0.03
django cms 3.3.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base.html). Place it at the bottom of the HTML : <footer> {% {% static_placeholder 'footer' %} footer> Save the template and return to your browser. Refresh any page in Structure mode, and you’ll see the new static placeholder. If you add some content to it in0 码力 | 386 页 | 1.56 MB | 1 年前3
django cms 4.1.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base inside a content block: {% load djangocms_alias_tags %} {% block content %} <footer> {% static_alias 'footer' %} footer> {% endblock content %} (continues on next page) 5.2. Django/Python compatibility0 码力 | 357 页 | 1.99 MB | 1 年前3
django cms 4.1.1 Documentation
section on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base inside a content block: {% load djangocms_alias_tags %} {% block content %} <footer> {% static_alias 'footer' %} footer> {% endblock content %} (continues on next page) 5.2. Django/Python compatibility0 码力 | 361 页 | 2.00 MB | 1 年前3
Django CMS 4.1.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the CMS static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base {% load djangocms_alias_tags %} {% block content %} <footer> {% static_alias 'footer' %} footer> {% endblock content %} {% render_block "js" %}0 码力 | 518 页 | 1.66 MB | 6 月前3
django cms 3.4.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base.html). Place it at the bottom of the HTML : <footer> {% {% static_placeholder 'footer' %} footer> Save the template and return to your browser. Refresh any page in Structure mode, and you’ll see the new static placeholder. If you add some content to it in0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 3.6.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base (mysite/templates/base.html). Place it near the end of the HTML element: <footer> {% static_placeholder 'footer' %} footer> {% render_block "js" %} 4.1. Django/Python compatibility table 13 django0 码力 | 278 页 | 1.63 MB | 1 年前3
django cms 3.10.x Documentationsection on your website which should be the same on every single page, such as a footer block. You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later. So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base Django/Python compatibility table 13 django cms Documentation, Release 3.9.0 <footer> {% static_placeholder 'footer' %} footer> {% render_block "js" %} Save the template and return to your browser0 码力 | 296 页 | 1.79 MB | 1 年前3
共 53 条
- 1
- 2
- 3
- 4
- 5
- 6













