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.
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.
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.
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.
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
is working on a reply...