Edit Creating new block instead of updating the old one
Permalink
I have created a custom block to display out an image gallery, when I update the block it creates a new block instead of updating the old information my save method looks something like this am I missing anything ?
function save($data){ $this->saveImages($data); parent::save($data); }
Have you looked at the source code for the Image block, or the Slideshow block? Seems like it would be a good reference point.
Hi Elyon, thanks for the reply, I have most of the block written, (the reason for custom block is we are using a CDN for our multimedia) My problem seems to be on the save after an edit (update-block) where it's creating a new block and losing all images associated with the old block
Edit - This is explained here:
http://www.concrete5.org/community/forums/customizing_c5/new-db-rec...
http://www.concrete5.org/community/forums/customizing_c5/new-db-rec...