Library elements in v19: are block settings meant to be stored per placement, not in the Library?

Hi all :waving_hand: ,

I’m trying the new Library section on 19.0.0-rc1 and want to check how block settings are meant to work with Library elements.

When I add a Library element to a Block List, the Library element only stores the content properties. The settings are saved on the page, and each placement gets its own settingsKey:

{
"contentKey": "03ebcea4-…",
"settingsKey": "574bb453-…",
"isExternalContent": true
}

That makes sense, since the settings model is configured per Block List Data Type. For a long time, though, I assumed settings would also live in the Library, so the element would look the same everywhere it’s used.

Is it intended that settings are always per placement and never stored on the Library element?

/Nina

Hi @zaravanina

It’s deliberate that settings are stored where the block is placed, as the settings may differ based on context, for example you may want different background colours or margins (or other settings), but still re-use global content.

The only documentation I can find for this is the discussion here:

Therefore, it is only the content for that element that is global, not it’s settings.

Justin

Also, welcome to the forum!