I have a content-type “Post” which has a field called places, which is a repeatable component, and can have components of the type “Place”.
My plugin is adding a button which adds a new “Place” to the “Post”.
Now I have figured out how to add an empty “Place” component:
const entity = useCMEditViewDataManager();
entity.addRepeatableComponentToField(
"places",
entity.allLayoutData.components["post.place"],
undefined
true
);
But, I cannot figure out how to also add content to the place.
Can someone enlighten me please.