Esempio n. 1
0
 public string RenderXpmMarkupForComponent(IComponentPresentationData cp, string region = null)
 {
     var dd4tCP = cp == null ? null : cp.BaseData as IComponentPresentation; //Will only work with DD4T implementation
     //new Dynamic.ComponentPresentation
     //{
     //    Component = new Dynamic.Component
     //    {
     //        Id = cp.Component.TcmUri,
     //        Title = cp.Component.Title,
     //        PublicationId = "tcm:0-" + cp.Component.PublicationId + "-1"
     //    },
     //    ComponentTemplate = new Dynamic.ComponentTemplate
     //    {
     //        Title = cp.Template.Title,
     //        Id = cp.Template.TcmUri,
     //        RevisionDate = cp.Template.RevisionDate
     //    }
     //};
     return SiteEditService.GenerateSiteEditComponentTag(dd4tCP, region);
 }
Esempio n. 2
0
 public void Init()
 {
     contentContainerCp = new DVM4T.Testing.Tests().GetContentContainerCp();
     contentContainerModelData = Dependencies.DataFactory.GetModelData(contentContainerCp);
 }