Copied to clipboard

Flag this post as spam?

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


  • Ayo Adesina 419 posts 1001 karma points
    Sep 10, 2017 @ 10:21
    Ayo Adesina
    0

    Umbraco.NoEdit - What view does Umbraco Use?

    Hi guys,

    I'm creating a custom section in Umbraco, one of my aims when creating this custom section was to reuse all the umbraco editors unless I was doing something that needed me to create my own.

    I have created a generic method to build each editor. For each editor in a custom view I pass in the property editor definition.

    Like this:

    {
                editor: 'Umbraco.DropDown',
                label: "Label Here",
                description: "description here",
                hideLabel: false,
                view: "dropdown",
                alias: alias,
                value: null,
                validation: {
                    mandatory: mandatory,
                    pattern: ""
                },
                config: config
            };
    

    The problem is I want to reuse umbraco's label property editor "Umbraco.NoEdit" but I cant find/work out what I should be passing for view....

    Any ideas? is there a list somewhere in the docs that gives an example of what each property editors config value should be.

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Sep 10, 2017 @ 11:18
  • John Bergman 460 posts 1066 karma points
    Sep 10, 2017 @ 16:58
    John Bergman
    0

    I use a "Label" in cases were I need something readonly

  • 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