public EditableItemSelectionAttribute() { LinkedType = typeof(ContentItem); ExcludedType = typeof(ISystemNode); SearchTreshold = 20; Include = EditableItemSelectionFilter.Pages; }
public EditableItemSelectionAttribute() { LinkedType = typeof(ContentItem); ExcludedType = typeof(ISystemNode); SearchTreshold = 10; Include = EditableItemSelectionFilter.Pages; }
private bool Is(EditableItemSelectionFilter filter) { return (filter & Include) == filter; }
private bool Is(EditableItemSelectionFilter filter) { return((filter & Include) == filter); }
public List<ContentItem> GetContentItems(ContentItem curent, System.Type linkedType, System.Type excludedType, int searchThreshold, EditableItemSelectionFilter filtler) { var blog = curent.Parent as BlogContainer; return blog == null ? new List<ContentItem>() : blog.Tags.Cast<ContentItem>().ToList(); }