Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Sep 19, 2010 @ 14:13
    Sebastiaan Janssen
    0

    How to add extra textbox in the "Additional settings" of a custom fieldtype?

    Is there a way to add new textboxes (or other controls) to the additional settings? I need some extra settings for this fieldtype that I'm developing.

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Sep 19, 2010 @ 14:54
    Sebastiaan Janssen
    0

    Never mind, found it, do something like this: 

        public sealed class MyField : FieldType
        {
            [Umbraco.Forms.Core.Attributes.Setting("SomeSetting", prevalues = "",
                 description = "Setting description",
                 control = "Umbraco.Forms.Core.FieldSetting.TextField")]
            public string SomeSetting { get; set; }
    

    Building an example into Contour Contrib project right now.

     

     

  • Comment author was deleted

    Sep 20, 2010 @ 08:59

    Yup that's the way to do it, but it's only possible from version 1.1.3 (currently wip) and up

     

  • 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