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 4899 posts 14655 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 4899 posts 14655 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.

     

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Sep 20, 2010 @ 08:59
    Tim Geyssens
    0

    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