Copied to clipboard

Flag this post as spam?

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


  • Nate 143 posts 184 karma points
    Aug 14, 2011 @ 21:11
    Nate
    1

    Saving a property of type float/double?

    Is there a way to save a number other than an Integer as a property on a document type?

    I can't just save a string because of queries.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Aug 14, 2011 @ 21:14
    Jeroen Breuer
    0

    I think it's best if you create a custom datatype which stores the value as a string, but converts it to a float/double. Don't think there's a default datatype which does this.

    Jeroen

  • Nate 143 posts 184 karma points
    Aug 14, 2011 @ 22:06
    Nate
    0

    Thanks.

    That sounds like a pain in the ass. Does anyone know of a package that already does this or can direct me to a page about how to create custom datatypes?

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Aug 14, 2011 @ 22:32
    Jeroen Breuer
    0

    Here are some usefull blogposts on how to create a custom datatype:

    http://www.nibble.be/?p=24

    http://www.nibble.be/?p=97

    http://www.nibble.be/?p=100

    Jeroen

  • Ian 3 posts 24 karma points
    Apr 09, 2014 @ 13:36
    Ian
    1

    I've just come across this and raised an issue - http://issues.umbraco.org/issue/U4-4652 this is quite a significant missing data type to have to deal with.

  • 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