wn-blocks-plugin icon indicating copy to clipboard operation
wn-blocks-plugin copied to clipboard

[Bug] Initial block 'add item' FormWidget only appears in the Meta section of Static Pages

Open nmiyazaki-chapleau opened this issue 1 year ago • 1 comments

When no blocks have been defined yet, the "add item" field only exists in the "meta" section of a Static Page.

image image

We can also see the Markup section is only disabled on the "meta" section. Once any block is added, the blocks appear in the main section as well.

The static page layout:

description = "Default layout for static"

[staticPage]
useContent = 1
default = 0

[localePicker]
forceUrl = 0
==
{% partial "site/header" %}

{% component 'staticPage' %}
{{ renderBlocks(blocks ?? []) }}

{% partial "site/footer" %}
{variable type="blocks" name="blocks" tab="winter.pages::lang.editor.content"}{/variable}

nmiyazaki-chapleau avatar May 17 '24 16:05 nmiyazaki-chapleau

Not sure the page can handle default content and blocks in the same time.

Try :

[staticPage]
useContent = 0
default = 0

To see if the behavior change.

damsfx avatar May 17 '24 19:05 damsfx

I thought I had tried that.... looks like I didn't. This also fixes #33 . Thanks alot!

nmiyazaki-chapleau avatar May 21 '24 12:05 nmiyazaki-chapleau