Copied to clipboard

Flag this post as spam?

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


  • Russell McGinnis 48 posts 183 karma points
    Aug 09, 2014 @ 01:47
    Russell McGinnis
    0

    Changing location of data stored in Custom Property Editor

    I have followed some other peoples examples to create a multidate/time picker custom property editor for my project. However the data is getting stored in a fixed size column in the cmsPropertyData table - the dataNVarchar column. I would like to store the data in the "less limited" column, the dataNtext column.

    Now I am pretty new to Angular - which is the foundation of the custom property editor  - but what I can see is that I am referencing "model.value" to retrieve and store the data. Is there documentation on this "model" object so that I can see what other properties I can reference ?

    Thanks

    Russell

  • Allan Molsen Larsen 22 posts 192 karma points
    Aug 09, 2014 @ 19:52
    Allan Molsen Larsen
    101

    Hi Russell

    I found the following in the manifest documentation on github: http://umbraco.github.io/Belle/#/tutorials/manifest

    In the editor section of the manifest you can specify the type like this:

    editor: {
     view: "~/App_Plugins/editor_view.html",
     valueType: "JSON"
    }
    

    Default db datatype is nvarchar if you don't specify another valueType.

    / Allan

  • Russell McGinnis 48 posts 183 karma points
    Aug 11, 2014 @ 17:01
    Russell McGinnis
    0

    Allan, thanks very much for pointing me over there... very helpful.

     

    Russell

  • Allan Molsen Larsen 22 posts 192 karma points
    Aug 11, 2014 @ 21:37
    Allan Molsen Larsen
    0

    No problem, Russell. Happy to help. :-)

    Cheers,
    Allan

Please Sign in or register to post replies

Write your reply to:

Draft