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."
;
This commit is contained in:
J. Heasly 2017-01-04 19:05:14 -08:00 committed by Matt Westcott
parent b006b19582
commit 9424a8eab9
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -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' %}