When editing the Image property (which is of type Url) the new image is viewed, but the all additional view data dissapear.
If I change the code to this the view data don't dissapear, but the caption gets outside the property which is not what I want. Does anyone has a solution to this problem which come up many times when developing with EPiServer 7.
I have problems rendering a property in Edit mode when the property ha changed.
The view Image.cshml renders the image with the CssClass. This is a simplified example.
Image.cshtml
In the page view
When editing the Image property (which is of type Url) the new image is viewed, but the all additional view data dissapear.
If I change the code to this the view data don't dissapear, but the caption gets outside the property which is not what I want. Does anyone has a solution to this problem which come up many times when developing with EPiServer 7.