I've created a dojo widget for handling images in edit mode. I save all the images as a string (json) and add them as a List<JsonImages> to the model in the controller. In the view I use a foreach.
When I add a new image in forms mode and then go back to on-page editing without publishing - everything is ok. In other words the view is updated with the new image.
But when I add a new image in forms mode, publish the page and is automatically sent to on-page editing, the view is not updated.
What is the difference between these two?
Are there anyway to force it to reload in some other way for updating the view? Or any other tricks I can add to fix this? Cache?
I've created a dojo widget for handling images in edit mode.
I save all the images as a string (json) and add them as a List<JsonImages> to the model in the controller. In the view I use a foreach.
When I add a new image in forms mode and then go back to on-page editing without publishing - everything is ok.
In other words the view is updated with the new image.
But when I add a new image in forms mode, publish the page and is automatically sent to on-page editing, the view is not updated.
What is the difference between these two?
Are there anyway to force it to reload in some other way for updating the view?
Or any other tricks I can add to fix this? Cache?