未创建Sitecore 8 Glass Mapper模板字段语言版本

时间:2015-10-28 11:27:32

标签: templates sitecore sitecore8 glass-mapper

我目前正在进行新的Sitecore 8(Update 5)构建,并决定使用Glass Mepper(Glass.Mapper.Sc.4.0.3.51)代码的第一个模板。在运行时,模板正在按照预期在" GlassTemplates"夹。但是,字段和字段部分都缺少语言版本,这些版本在将这些版本发布到Web数据库时会导致问题吗?

这是一个示例类:

[SitecoreType(CodeFirst = true, TemplateId = TemplateStringId, TemplateName = TemplateDescription)]
public class Website
{

    #region "Template And Field Ids"
    public static Guid TemplateId = new Guid(TemplateStringId);
    private const string TemplateDescription = "Website Configuration";
    private const string TemplateStringId = "{2CC88217-A2BE-433F-B7D5-7CF75BF49B4E}";
    private const string FooterLinksFieldId = "{82649401-1425-43FC-B73D-B19BE953FEF4}";
    private const string SocialLinksFieldId = "{0B631B01-8996-406F-B3F3-53F3A0395AE4}";
    private const string GoogleAnalyticsCodeFieldId = "{69312587-DAD8-4FAA-8BF1-CD3C95F5C574}";
    #endregion

    [SitecoreField(FieldId = FooterLinksFieldId, FieldName = "Footer Links", FieldType = SitecoreFieldType.Multilist, SectionName = Sections.WebsiteConfiguration, CodeFirst = true)]
    public virtual string FooterLinks { get; set; }

    [SitecoreField(FieldId = SocialLinksFieldId, FieldName = "Social Links", FieldType = SitecoreFieldType.Multilist, SectionName = Sections.WebsiteConfiguration, CodeFirst = true)]
    public virtual string IncludeInNavigation { get; set; }

    [SitecoreField(FieldId = GoogleAnalyticsCodeFieldId, FieldName = "Google Analytics Code", FieldType = SitecoreFieldType.SingleLineText, SectionName = Sections.WebsiteConfiguration, CodeFirst = true)]
    public virtual string GoogleAnalyticsCode { get; set; }
}

这里有什么我可能会遗失的吗?

0 个答案:

没有答案