Copied to clipboard

Flag this post as spam?

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


  • kalpesh 7 posts 77 karma points
    Aug 07, 2018 @ 14:52
    kalpesh
    0

    prevalues of custom datatype stored in database as JSON format.

    I have created a custom editor and use prevalues in that but when I create a new datatype it will store the data in JSON format. Here is my package.manifest file code.

    { propertyEditors: [ { alias: "categorycheckbox", name: "Category Checkbox", isParameterEditor: true, editor: { view: "~/App_Plugins/CategoryCheckbox/View/categorycheckbox.editor.html",
    }, "prevalues": { "fields": [ { "label": "Enable something", "description": "This is a describtion", "key": "items", "view": "multivalues" } ] } } ],

        javascript: [
            "~/App_Plugins/CategoryCheckbox/Js/CategoryCheckbox.controller.js"
        ]
    

    }

    Should i have to change package.manifest file to stored individual record.

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Aug 07, 2018 @ 18:57
    David Brendel
    0

    Hi Kalpesh,

    by default Umbraco stores data from editors as json. There are some other types you can use like int, string and text.

    Have a look at the documentation.

    Regards David

  • 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