#How to automatically delete content of an M2A field?

5 messages · Page 1 of 1 (latest)

exotic grotto
#

I have an M2A field called block_editor which I've attached to an articles collection. One of my blocks is called rich_editor. Within an articles entry, if I delete the contents of a rich_editor field which contains some text, it still remains present within the rich_editor collection. How do I have it automatically remove itself after I delete from my article entry?

exotic grotto
#

Even if I was to delete the article entry entirely, the block still remains present.

broken kindle
#

Hmm, if you want to keep things simple, use a one-to-many relationship. Are you going to reuse the particular block for another article?