예제 #1
0
 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());
 }
예제 #2
0
        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));
        }
예제 #3
0
 protected IList <ContentItem> GetItemsInZone(object dataItem)
 {
     N2.Integrity.AvailableZoneAttribute a = (N2.Integrity.AvailableZoneAttribute)dataItem;
     return(CurrentItem.GetChildren(a.ZoneName));
 }