Copied to clipboard

Flag this post as spam?

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


  • Robert 13 posts 34 karma points
    Jun 28, 2011 @ 18:33
    Robert
    0

    Custom Backend User Field

    What's the simplest way to create a custom field for a backend user?  I'm wanting to add an avatar field so we can inject the image inside an article post within the author info.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jun 28, 2011 @ 18:44
    Tom Fulton
    0

    Hi,

    The simplest way to create a custom field (Datatype) is using the UserControlWrapper method - where you just create a usercontrol, inherit from the IUsercontrolDataEditor, and return a value.

    Great example on Tim's blog of this method:  http://www.nibble.be/?p=97

    You could also check out Lee's Incarnate Avatar Picker package, which may do what you want or be good inspiration for your own datatype.  There is a link to the source on the project page.

    Note he's using the AbstractDataEditor method instead of the UserControlWrapper method.

    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft