How to Use ListBlocks in Wagtail CMS to Create Repeating StreamField Content

Coding For Everybody
Coding For Everybody
18.3 هزار بار بازدید - 6 سال پیش - Occasionally you'll want a StreamField
Occasionally you'll want a StreamField that can have multiple repeating content areas. A good example is the design component known as a Card. In this lesson we'll explore a ListBlock to enable us to create unlimited cards with custom data, ImageChooserBlock, PageChooserBlock and how to loop through a ListBlock in your Wagtail CMS template.

Tutorial Page: https://learnwagtail.com/tutorials/ho...

The Git Commit: https://github.com/CodingForEverybody...

Learn Wagtail from scratch with the official Wagtail for Beginners Course
https://learnwagtail.com/wagtail-for-...

Stock photos provided by Pexels.com.

Used in this video: Wagtail 2.4, Python 3.7, Django 2.1.5 #Wagtail #Django #Python
6 سال پیش در تاریخ 1397/11/13 منتشر شده است.
18,367 بـار بازدید شده
... بیشتر