Exemple #1
0
        public override IRenderingModelBase GetModel()
        {
            EmailRenderingModel validateRenderingModel = new EmailRenderingModel();

            FillBaseProperties(validateRenderingModel);
            validateRenderingModel.Email   = GetFieldValue(validateRenderingModel, "Email");
            validateRenderingModel.CSSLink = GetFieldValue(validateRenderingModel, "CSS file link");
            validateRenderingModel.JSLink  = GetFieldValue(validateRenderingModel, "JS file link");
            return(validateRenderingModel);
        }
Exemple #2
0
 private string GetFieldValue(EmailRenderingModel model, string FieldName)
 {
     Sitecore.Data.Fields.Field text = model.Item.Fields[FieldName];
     return(text.Value);
 }