Small example showing how to add a Custom Css Class to your module.
- Add code using the setting eg. Page_Load
- Update config xml eg. Setup/applications/FeatureDefinitions/MyModule.config
- Add resource in App_GlobalResources eg. CustomCssClassSetting as 'Custom Css Class'
- Run the system setup
if (Settings.Contains("CustomCssClassSetting"))
{
var instanceCssClass = Settings["CustomCssClassSetting"].ToString();
if (instanceCssClass.Length > 0) { pnlOuterWrap.SetOrAppendCss(instanceCssClass); }
}
<featureSetting
resourceFile="MyModuleResources"
grouNameKey=""
resourceKey="CustomCssClassSetting"
defaultValue=""
controlType="TextBox"
controlSrc=""
helpKey="custom-module-css-class-help"
sortOrder="3000"
regexValidationExpression="^([\s]?[a-zA-Z]+[_\-a-zA-Z0-9]+)*\z+"
/>