bobbingwide / sb

SB: Second Byte - Seriously Bonkers' experimental Full Site Editing theme
GNU General Public License v3.0
0 stars 0 forks source link

Update for Gutenberg 11.2.0; Fatal error due attempting to display query-loop #16

Closed bobbingwide closed 2 years ago

bobbingwide commented 3 years ago

It happened with Fizzie and again with SB. The logic run when Gutenberg finds a query-loop block is flawed and leads to a Fatal error for each query-loop block.

See https://github.com/bobbingwide/fizzie/issues/70#issuecomment-889974223

We need to update SB for Gutenberg 11.2.0.

The query-loop override implemented for the home page needs to be applied to work against the post-template block.

bobbingwide commented 3 years ago

Having resolved the first part of the problem it now appears that the override logic attempt to respect the flex layout request specified on the query block works.

<!-- wp:query {"queryId":3,"query":{"perPage":8,"pages":0,"offset":0,"postType":"bigram","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"flex","columns":4}} -->

The attribute is now called displayLayout. layout is for the Layout settings toggle: Inherit default layout

bobbingwide commented 2 years ago

SB v0.2.1 now delivered supporting Gutenberg 13.1.0. Closing therefore.