Hey @e.lito can you give a try on this development version? I think I found the bug:
When trying new versions like this, don’t forget to reload your page clearing your browser cache (CTRL + SHIFT + R).
Visit the side editor and try to insert the “Item metadata sections” block again. Instead of asking you to select a collection it should only load placeholders for the item metadata.
That is a great question. Answering it is a bit tricky which is why I’m not entirely sold in our strategy for FSE themes yet. But let’s try:
If you insert the Item Metadata Sections block, you’ll notice it has a hierarchy of child blocks:
The Item Metadata Sections block is responsible for loading an array of Item Metadata Sections block. Each Item Metadata Section is responsible for loading the Metadata Section Label block and a Item Metadata block. That Item Metadata block is responsible for loading an array of Item metadatum block, which finally loads the label and value for that metadatum.
If you select each of this parent blocks, you’ll see that they have an option for data source sync.
. If you check that, you’re leaving the parent block responsible for fetching the content from Tainacan. If you disable that, you’ll be able to make changes to it’s children, like re-ordering and deleting elements.
So if you insert a Item Metadata Sections block and check that, you won’t be able to change much besides container size, colors, etc. On the other hand, if in the future you create or reorder your metadata sections and any of it’s inner content, things will be there.
But if you want to build your own layout, say using a sidebar like that, you could instead insert manually your own Item Metadata Sections blocks, selecting the desired section during the block setup. You’ll be loosing the dynamic aspect of the wrapper (future metadata sections won’t be inserted automatically) but you’ll be able to move them as you wish. The inner content will still be sync, as long as that option is checked.
BUT let’s say you want to remove something inside that section, such as the case of the sidebar. For that you could uncheck (disable) the sync option of that single Item Metadata Section block and then remove the Metadata Section Label block. By doing that, you would be loosing the automatic metadata sorting and insertion/deletion.
There is another path to do what I described in the paragraph above. Here you would want not to insert the Item Metadata Section block but your own array of Item metadatum blocks. You would manually setup each metadatum. Again, this means you loosing their automatic sorting and auto insertion/deletion if in the future you ever change that in your collection settings. What matters is that the item metadatum label and values remain dynamic.
So in the end I think you can do a combination of strategies. Does it makes sense?