|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 659 Location: Preston, UK
|
Guys, I have created custom datatypes in the past using the old method with the three classes DataEditor, DataType, PreValueEditor. On Tim's blog i came across userControlGrapper.IUsercontrolDataEditor way of doing things. My question is what are the advantages / disadvantages between the 2 methods? Regards Ismail
Level 2 certified. If it aint broke dont fix.
|
|
Rank: Aficionado
Joined: 10/2/2007 Posts: 166 Location: Czech Republic
|
Hallo Ismail, Is there any tutorial or sample how to create new datatype with old method ?
I try new one, but I cannot compare ...
|
|
 Rank: Fanatic
Joined: 7/22/2006 Posts: 259 Location: Randers, Denmark
|
Hi Petr, This piece of code made by Christian Palm uses the old method of making user controls http://www.cpalm.dk/blog/2006/03/29/multiplepagepickerviasource.aspxIsmail: The old method is slightly more complex and require more coding, but deployment is a little bit easier IMHO
Best Regards Simon Level 0 uncertified ;)
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 766 Location: Belgium
|
Hi Ismail, Using the wrapper is a fast way of doing it, but it has some limitation, most important one being you cannot have parameters on your datatype ( in the developer section )
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 659 Location: Preston, UK
|
Guys,
Thanks for the reply. I thought the parameter thing was the main thing but just needed to make sure.
I suppose one way round configuration issues would to have its own config file not as slick as passing in values directly but i really like the ease with which you can create your own datatype using userControlGrapper.IUsercontrolDataEditor
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 766 Location: Belgium
|
No prob Ismail @Petr I'm planning on writting a post explaining the three classes method.
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
Rank: Aficionado
Joined: 10/2/2007 Posts: 166 Location: Czech Republic
|
tim wrote:@Petr I'm planning on writting a post explaining the three classes method. Super :-)
|
|
|
Guest |