Programatically add lines to a Super Table field I am trying to add new lines into a SuperTable field of an entry from my plugin.
Following the Developper sample, I am able to change set lines to this SuperTable field.
But it is replacing the existing content.
What should I do to be able to keep existing lines in my SuperTable and add new ones?
Thanks for your help!
Got it!

In case you just want to add lines (or Blocks) to a SuperTable field of an entry, no need to update the entry itself, you "just" have to create new Blocks with correct type, field and entry.

    $field = craft()-&gt;fields-&gt;getFieldByHandle('mySuperTableField');
    $blockTypes = craft()-&gt;superTable-&gt;getBlockTypesByFieldId($field-&gt;id);
    $blockType = $blockTypes[0]; //Only 1 Type of Blocks in the SuperTable
    $typeId = $blockType['id'];

    $block = new SuperTable_BlockModel();
    $block-&gt;fieldId = $field-&gt;id;
    $block-&gt;typeId = $typeId;
    $block-&gt;ownerId = $entryId; //this is the entry id

    $block-&gt;setContentFromPost(array(
        'categoryOne' =&gt; [$catOne-&gt;id],
        'categoryTwo' =&gt; [$catTwo-&gt;id],
        'textField' =&gt; 'blablable...'
    ));

    $success = craft()-&gt;superTable-&gt;saveBlock($block);