kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
b006b19582
commit
9424a8eab9
|
@ -198,6 +198,7 @@ Contributors
|
|||
* Robert Slotboom
|
||||
* Erick M'bwana
|
||||
* Andreas Nüßlein
|
||||
* John Heasly
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -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' %}
|
||||
|
|
Ładowanie…
Reference in New Issue