2
Sitecore의 항목을 대체 항목의 매핑 할 때 비공유 필드와 함께 Glass Mapper를 작동시키는 방법이 있습니까?유리 매퍼가 Sitecore 8.1의 대체 된 필드를 매핑하지 않음
Glass는 공유 된 필드 만 내 모델에 매핑 할 수 있습니다. 내 Sitecore 항목의 값은 영어로되어 있으며 독일어는 영어로 되돌아갑니다. 항목의 독일어 버전을 요청하면 공유 필드에만 값이있는 항목이 반환됩니다.
저는 glass mapper v4와 Sitecore 8.1을 사용하고 있습니다.
내 Application_BeginRequest 방법은 다음과 같습니다
protected void Application_BeginRequest(object sender, EventArgs e)
{
Sitecore.Context.Items["Disable"] = new VersionCountDisabler();
}
내 클래스는 다음과 같습니다
[SitecoreType(AutoMap = true)]
public class CustomModel
{
[SitecoreField]
public virtual string Title { get; set; }
[SitecoreField]
public virtual string Description { get; set; }
[SitecoreField("Another field")]
public virtual string AnotherField{ get; set; }
}
감사합니다!