Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Kahler 36 posts 78 karma points
    Dec 05, 2012 @ 23:14
    James Kahler
    0

    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?

  • James Kahler 36 posts 78 karma points
    Dec 11, 2012 @ 11:02
    James Kahler
    0

    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?

  • James Kahler 36 posts 78 karma points
    Dec 11, 2012 @ 12:11
    James Kahler
    0

    It appears that a media type property cannot return xml, just tried it with ucomponents url picker and got the same results.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies