protected IList <ContentItem> GetItemsInZone(object dataItem) { N2.Integrity.AvailableZoneAttribute a = (N2.Integrity.AvailableZoneAttribute)dataItem; return(CurrentItem.Children.FindParts(a.ZoneName) .Where(p => Engine.SecurityManager.IsAuthorized(p, Page.User)) .ToList()); }
protected string GetNewDataItemUrl(object dataItem) { N2.Integrity.AvailableZoneAttribute a = (N2.Integrity.AvailableZoneAttribute)dataItem; Url newUrl = Engine.ManagementPaths.GetSelectNewItemUrl(CurrentItem, a.ZoneName); return(newUrl.AppendQuery("returnUrl", Request.RawUrl)); }
protected IList <ContentItem> GetItemsInZone(object dataItem) { N2.Integrity.AvailableZoneAttribute a = (N2.Integrity.AvailableZoneAttribute)dataItem; return(CurrentItem.GetChildren(a.ZoneName)); }