public EditableItemSelectionAttribute()
 {
     LinkedType = typeof(ContentItem);
     ExcludedType = typeof(ISystemNode);
     SearchTreshold = 20;
     Include = EditableItemSelectionFilter.Pages;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 5
0
 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();
 }