From 9424a8eab9925f3b5266a53fcb62bbf173a2f589 Mon Sep 17 00:00:00 2001 From: "J. Heasly" Date: Wed, 4 Jan 2017 19:05:14 -0800 Subject: [PATCH] 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." ; --- CONTRIBUTORS.rst | 1 + docs/topics/streamfield.rst | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index b409c4fb1c..0a058d629b 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -198,6 +198,7 @@ Contributors * Robert Slotboom * Erick M'bwana * Andreas Nüßlein +* John Heasly Translators =========== diff --git a/docs/topics/streamfield.rst b/docs/topics/streamfield.rst index 9622179719..d1df8e0cd9 100644 --- a/docs/topics/streamfield.rst +++ b/docs/topics/streamfield.rst @@ -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 ``
{% for block in page.body %}
{% include_block block %}
@@ -489,6 +493,8 @@ For more control over the rendering of specific block types, each block object p {% load wagtailcore_tags %} + ... +
{% for block in page.body %} {% if block.block_type == 'heading' %}