Hi,
Everything seems to work better now that I have adjusted the values for name and value:
'name' => $key.'[interactive_image_tag'.$tagnr.'][top]', 'value' => $field['value']['interactive_image_tag'.$tagnr]['top']
Now things do get saved to the database. I have a new field[‘value’] array that is filled with the data. But something with the default values is still going wrong.
When I use the reference to the defaults, I always see the default value.
When I use the reference to the real values, I don’t get the default fallback.
I have applied $field = array_merge($this->defaults, $field);
.
Updated code is at https://gist.github.com/jelmerdemaat/7661494
Hi @elliot,
These fields appear correctly as I have filled in: http://d.pr/i/GIJQ
But my own field interactive_image is not even there.
I have a feeling I’m missing a step, but where?
Could it be because I added the new field type it to an existing content part?
Best regards,
Jelmer