Give indication that there may be other template bits necessary for tag to work.

I came to this page from "Getting Started" template examples where all pages examples are rendered within {% block content %} tags which are not in these template examples."
;
pull/3267/head
J. Heasly 2017-01-04 19:05:14 -08:00 zatwierdzone przez Matt Westcott
rodzic b006b19582
commit 9424a8eab9
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -198,6 +198,7 @@ Contributors
* Robert Slotboom
* Erick M'bwana
* Andreas Nüßlein
* John Heasly
Translators
===========

Wyświetl plik

@ -467,6 +467,8 @@ StreamField provides an HTML representation for the stream content as a whole, a
{% load wagtailcore_tags %}
...
{% include_block page.body %}
@ -476,6 +478,8 @@ In the default rendering, each block of the stream is wrapped in a ``<div class=
{% load wagtailcore_tags %}
...
<article>
{% for block in page.body %}
<section>{% include_block block %}</section>
@ -489,6 +493,8 @@ For more control over the rendering of specific block types, each block object p
{% load wagtailcore_tags %}
...
<article>
{% for block in page.body %}
{% if block.block_type == 'heading' %}