section 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 appears
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 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 your
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 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" %}
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 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 (mysite/templates/base.html). Place it near
the end of the HTML
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 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 (mysite/templates/base.html). Place it near
the end of the HTML
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 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 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 browser
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 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 (mysite/templates/base.html). Place it near the end of the HTML
such as a footer.
Arguments:
• placeholder_name
• page_lookup (see Page Lookup for more information)
• language (optional)
• site (optional)
Examples:
{% show_placeholder "footer" "footer_container_page" information)
• language (optional)
• site (optional)
Example:
{% show_uncached_placeholder "footer" "footer_container_page" %}
2.3.4 plugins_media
Outputs the appropriate tags to include all media that
pages, such as a footer.
Arguments:
placeholder_name
page_lookup (see Page Lookup for more information)
language (optional)
site (optional)
Examples:
{% show_placeholder "footer" "footer_container_page" more information)
language (optional)
site (optional)
Example:
{% show_uncached_placeholder "footer" "footer_container_page" %}
3.4. plugins_media
Outputs the appropriate tags to include all media that
such as a footer.
Arguments:
• placeholder_name
• page_lookup (see Page Lookup for more information)
• language (optional)
• site (optional)
Examples:
{% show_placeholder "footer" "footer_container_page" information)
• language (optional)
• site (optional)
Example:
{% show_uncached_placeholder "footer" "footer_container_page" %}
2.3.4 page_url
Displays the URL of a page in the current language.
Arguments: