Пример #1
0
 /// <summary>
 /// Builds the display shape of the page
 /// </summary>
 /// <param name="page">The page item</param>
 /// <param name="displayType">The display type (e.g. Summary, Detail) to use</param>
 /// <param name="groupId">Id of the display group (stored in the content item's metadata)</param>
 public static dynamic BuildPageDisplay(this IContentManager contentManager, IContent page, string displayType = "", string groupId = "")
 {
     var shape = contentManager.BuildDisplay(page, displayType, groupId);
     shape.Metadata.Wrappers.Add("PageWrapper_" + page.ContentItem.ContentType.Replace('.', '_'));
     return shape;
 }
 public static dynamic BuildFrontendPageDisplay(this IContentManager contentManager, IContent page, IGraphContext graph)
 {
     var shape = contentManager.BuildDisplay(page, graph.Name);
     shape.Metadata.Wrappers.Add("PageWrapper_" + page.ContentItem.ContentType.Replace('.', '_'));
     return shape;
 }