Custom Configuration Section
I'm trying to create a configuration section and I'm having some issues. If I use the code below, everything works correctly:
[ConfigurationProperty("SendPatientEmailNotifications", DefaultValue = true, IsRequired = true)]
public bool SendPatientEmailNotifications
get return (bool)this["SendPatientEmailNotifications"];
set this["SendPatientEmailNotifications"] = value;
[ConfigurationProperty("SendPatientEmailNotifications", DefaultValue = true, IsRequired = true)]
[ObjectInfo(typeof(ConfigDescriptions), Title = "Send Patient Email Notifications", Description = "Set this value if you want to send emails when a patient registers (to the patient)")]
public bool SendPatientEmailNotifications
get return (bool)this["SendPatientEmailNotifications"];
set this["SendPatientEmailNotifications"] = value;
Hi Miles,
Please make sure that the ConfigDescriptions
file contains the all resource entries for the values you enter. Consider reviewing our documentation article regarding the creation of custom configuration classes:
www.sitefinity.com/.../deep-dive-configuration-creating-configuration-classes.html
You might also check the Product Catalog module in the SDK which has custom configuration class used.
Kind regards,
Victor Velev
the Telerik team
is there a way to show it in the basic settings instead of the advanced ?
Hello Bishoy,
The Basic setting of custom widgets could be used by creation of Widget Designer for new or existing widgets.
This could be done by using Sitefinity Thunder.
Regards,
Svetoslav Manchev
Telerik
Is there a way to create a configuration property that hooks to the image gallery?