Hi
I earlier versions of EpiServer when I have done custom type definitions I have done like this:
1. created a class file
2. Something like this:
namespace MyNS {
[Serializable]
[PageDefinitionTypePlugIn]
public class MyProp : PropertyString {
public override void CreateChildControls(string renderType,System.Web.UI.Control container) {
if(renderType=="edit") {
// do something in edit state/mode
}
// the rest of the code
}
}
}
When I compile this stuff in CMS 5, the compilator tells me that: CreateChildControls is Obsolete ?
How do I use this mechanism now ? Are there any good examples of doing this ?
This is a good start:
http://sdk.episerver.com/library/cms5/Developers%20Guide/How%20To/Create%20a%20Custom%20Property.htm
and http://sdk.episerver.com has some other advise as well.