Exemplo n.º 1
0
 public static EditableBuilder <EditableEnumAttribute> Enum(this IContentRegistration registration, string name, Type enumType, string title = null)
 {
     return(registration.RegisterEditable <EditableEnumAttribute>(name, title)
            .Configure(e => e.EnumType = enumType));
 }
 public static EditableBuilder <EditableMediaUploadAttribute> MediaUpload(this IContentRegistration registration, string name, string title = null)
 {
     return(registration.RegisterEditable <EditableMediaUploadAttribute>(name, title));
 }
Exemplo n.º 3
0
 public static EditableBuilder <EditableCheckBoxAttribute> CheckBox(this IContentRegistration registration, string name, string checkBoxText = null)
 {
     return(registration.RegisterEditable <EditableCheckBoxAttribute>(name, "")
            .Configure(e => e.CheckBoxText = checkBoxText));
 }
Exemplo n.º 4
0
 public static EditableBuilder <EditableChildrenAttribute> Children(this IContentRegistration registration, string zoneName)
 {
     return(registration.RegisterEditable <EditableChildrenAttribute>(zoneName, zoneName));
 }
Exemplo n.º 5
0
 public static EditableBuilder <EditableTagsAttribute> Tags(this IContentRegistration registration, string name)
 {
     return(registration.RegisterEditable <EditableTagsAttribute>(name, name));
 }
Exemplo n.º 6
0
 public static EditableBuilder <WithEditableDateRangeAttribute> DateRange(this IContentRegistration registration, string nameStart, string nameEnd, string title = "Dates")
 {
     return(registration.RegisterEditable <WithEditableDateRangeAttribute>(nameStart, title)
            .Configure(a => a.NameEndRange = nameEnd));
 }
Exemplo n.º 7
0
 public static EditableBuilder <WithEditableNameAttribute> Name(this IContentRegistration registration, string title = "Name")
 {
     return(registration.RegisterEditable <WithEditableNameAttribute>("Name", title));
 }
Exemplo n.º 8
0
 public static EditableBuilder <WithEditablePublishedRangeAttribute> PublishedRange(this IContentRegistration registration, string title = "Published between")
 {
     return(registration.RegisterEditable <WithEditablePublishedRangeAttribute>("Published", title));
 }
Exemplo n.º 9
0
 public static EditableBuilder <EditableUserControlAttribute> UserControl(this IContentRegistration registration, string name, string userControlPath, string title = null)
 {
     return(registration.RegisterEditable <EditableUserControlAttribute>(name, title)
            .Configure(e => e.UserControlPath = userControlPath));
 }
Exemplo n.º 10
0
 public static EditableBuilder <EditableSummaryAttribute> Summary(this IContentRegistration registration, string name, string title = null, string source = null)
 {
     return(registration.RegisterEditable <EditableSummaryAttribute>(name, title)
            .Configure(e => e.Source = source));
 }
Exemplo n.º 11
0
 public static EditableBuilder <EditableThemeSelectionAttribute> ThemeSelection(this IContentRegistration registration, string name, string title = null)
 {
     return(registration.RegisterEditable <EditableThemeSelectionAttribute>(name, title));
 }
Exemplo n.º 12
0
 public static EditableBuilder <EditableLanguagesDropDownAttribute> Languages(this IContentRegistration registration, string name, string title = null)
 {
     return(registration.RegisterEditable <EditableLanguagesDropDownAttribute>(name, title));
 }
Exemplo n.º 13
0
 public static EditableBuilder <EditableImageSizeAttribute> ImageSize(this IContentRegistration registration, string name, string title = null)
 {
     return(registration.RegisterEditable <EditableImageSizeAttribute>(name, title));
 }
Exemplo n.º 14
0
 public static EditableBuilder <EditableFreeTextAreaAttribute> FreeText(this IContentRegistration registration, string name, string title = null)
 {
     return(registration.RegisterEditable <EditableFreeTextAreaAttribute>(name, title));
 }
Exemplo n.º 15
0
        // editables

        /// <summary>Class applicable attribute used to add a title editor.</summary>
        public static EditableBuilder <WithEditableTitleAttribute> Title <T>(this IContentRegistration <T> registration, string title = "Title")
        {
            return(registration.RegisterEditable <WithEditableTitleAttribute>("Title", title));
        }