Finding Blocks Across a Wagtail Site
Briefly

Finding where a specific block is used across a Wagtail site can be challenging, especially with deeply nested structures, making updates time-consuming for developers.
The provided module efficiently searches for blocks, even nested in StructBlock, StreamBlock, or ListBlock, helping to identify where a block type is used on every page.
The find_block_in_pages function utilizes criteria functions to filter blocks, yielding the current page, field, index, parent block, and the matched block itself.
Using the find_block_in_pages function allows developers to scope their searches effectively, focusing on specific areas of the Wagtail site.
Read at Informatikamihelac
[
|
]