The next thing your definition class should do is provide 2 constructors: one empty constructor and another one which takes a single configuration element as an argument. This is the same configuration element that we will implement in the next step. Both constructors should invoke the constructors of the base class with corresponding signatures. They don’t need to execute any code. Sitefinity CMS uses these constructors to create instances of your classes, and they are invoked automatically.
After you have implemented the two constructors, you should of course implement all properties specified by your custom interface. Those properties should not use automatic getters and setters. Instead, they should resolve their values by calling the ResolveProperty method of the base class. This is very important and your definitions will not work if your properties do not resolve values like this. The ResolveProperty method is the entry point for the chain of responsibility pattern we described earlier.
.customHeaderText = value;
There are several arguments you should pass to the ResolveProperty method.
When you have the two constructors and all properties from the interface, the implementation of the definition class is done.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity