Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
IPropertyControl control = PropertyControlClassFactory.Instance.
CreatePropertyControl(property);
if (control != null)
{
control.PropertyData = myPage.Property["YourProperty"];
control.Properties = myPage.Property;
control.RenderType = RenderType.Edit;
myPanel.Controls.Add((Control) control);
}
It is also possible to put your PropertyDataControl subclass in your aspx/ascx file as a web control and assign the values above.
Note that the XHtmlEditor assumes a lot about it's sorrundings. Like that is is placed on a subclass of PageBase, etc.
Is it possible to use the XHTML Editor on an admin mode plugin?
Does anyone have a sample?
Thanks