I've written a custom datatype using the usercontrol wrapper. I'm using it in a mediatype. The data is stored as xml, i've checked the data is storing correctly and its fine. But when it's returned in the media type it returns a string
ie this xml:
<base>
<one>hello</one>
<two>bye</two>
</base>
would return 'hellobye'
I've tested the datatype in a document type and it works correctly, returning the data as xml.
Anyone have any idea why a media type would reuturn the data differently?
Custom Datatype in MediaType
I've written a custom datatype using the usercontrol wrapper. I'm using it in a mediatype. The data is stored as xml, i've checked the data is storing correctly and its fine. But when it's returned in the media type it returns a string
ie this xml:
<base>
<one>hello</one>
<two>bye</two>
</base>
would return 'hellobye'
I've tested the datatype in a document type and it works correctly, returning the data as xml.
Anyone have any idea why a media type would reuturn the data differently?
Can anyone explain how a media type differers from a doc type in terms of hows it retrieves data?
Have I just come across a bug in umbraco?
It appears that a media type property cannot return xml, just tried it with ucomponents url picker and got the same results.
is working on a reply...