Problem with same alias in document type and media type image
I write this post thinking that in the future may help someone.
I have had a problem when I set the same alias for a property in a document type and in the media type image.
When I set the value of this property to an image, this value was not accessible from Razor (HasValue was false and value was null)
However the value of the property was preserved and could be seen in the backoffice. Curious!
Everything is solved when I changed the alias of the property in the media type Image.
More curious! For this property I use a custom datatype Umbraco.dropdown, the problem does not occur on other properties of type text string that has the same alias in document types and images.
Problem with same alias in document type and media type image
I write this post thinking that in the future may help someone.
I have had a problem when I set the same alias for a property in a document type and in the media type image.
When I set the value of this property to an image, this value was not accessible from Razor (HasValue was false and value was null)
However the value of the property was preserved and could be seen in the backoffice. Curious!
Everything is solved when I changed the alias of the property in the media type Image.
More curious! For this property I use a custom datatype Umbraco.dropdown, the problem does not occur on other properties of type text string that has the same alias in document types and images.
is working on a reply...