1

中心的な問題は、 と の処理がwagtail RichTextFieldテンプレートStreamFieldで根本的に異なることです。

私は次のようなことを達成しようとしています:

{% with post=post.specific %}
    {% if post.content_type == 'streamfield' %}
        {% include_block post.body %}
    {% else %}
        {{ post.body|richtext }}
    {% endif %}
{% endwith %}
4

0 に答える 0