Copied to clipboard

Flag this post as spam?

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


  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jan 19, 2011 @ 14:43
    Steen Tøttrup
    0

    Controlling the back-office UI in Contour with new field types?

    I'm trying to add some field types to Contour, and are struggling a bit with the back-office UI.

    Can I somehow control the number of input fields (and their labels) that are shown when creating a new field (I'm thinking Caption, Tooltip, Invalid Error Message, Default Value) ??

    Any good examples of doing this?

    Thanks

     

  • Comment author was deleted

    Jan 19, 2011 @ 14:51

    Hi,

    We'll you'll always have a couple of fixed ones, but you can add addtional settings to your fieldtype

    Check this example:

    http://www.nibble.be/?p=89

            [Umbraco.Forms.Core.Attributes.Setting("Culture", 
    description = "Enter the culture")]
    public string Culture { get; set; }
  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jan 20, 2011 @ 08:12
    Steen Tøttrup
    0

    Okay, thanks! I guess that helps me a bit.

    Is there any documentation to be found on the Setting attribute?

    I'm looking at a way to dictate the field shown in the back-office UI? Maybe the "control" parameter could be used for that? But what to put in it?

    Thanks

     

  • Comment author was deleted

    Jan 20, 2011 @ 09:19

    Hi Steen,

    Yup please check the developer documentation, can be found on the Contour project page

    http://our.umbraco.org/projects/umbraco-pro/contour

    (at the bottom, attached files)

    Regards,
    Tim

Please Sign in or register to post replies

Write your reply to:

Draft