I'm building a plugin that adds blocks to a matrix in an entry from the front end. I got it up and running by following the answer in this post:
How to save a matrix content of a new entry in my plugin?
How do I check if the matrix already has blocks when I fetch the entry? And then, once I know if the matrix already has blocks, how do I retain the existing data while saving new blocks via the plugin?
Here's a gist that shows how this can be used to create a new entry if there isn't one for the block to be added to yet if anyone else needs to do this: https://gist.github.com/bwlng/5c0bdeff62fabe247c87
Would resaving the entry after adding all the blocks update the search keywords?
– Stephen Bowling Jul 26 '14 at 01:15MatrixBlockModel. – cmal Nov 20 '18 at 21:49