public static void CreateFacebookWidgetSettingsDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "Show faces", new PreValue(-1, "Show faces") },
                { "Show feed", new PreValue(-1, "Show feed") }
            };

            UmbracoDataTypeService.InsertDataType("Facebook widget settings", "Umbraco.CheckBoxList", DataTypeDatabaseType.Nvarchar, preValues);
        }
        internal static void CreateLandingPageLayoutDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "Three columns (default)", new PreValue(-1, "Three columns (default)") },
                { "Two columns", new PreValue(-1, "Two columns") },
            };

            UmbracoDataTypeService.InsertDataType("Landing page layout", BuiltInUmbracoDataTypes.RadioButtonList, DataTypeDatabaseType.Integer, preValues);
        }
        public static void CreateSocialMediaOrderDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "Twitter, Facebook", new PreValue(-1, "Twitter, Facebook") },
                { "Facebook, Twitter", new PreValue(-1, "Facebook, Twitter") }
            };

            UmbracoDataTypeService.InsertDataType("Social media order", "Umbraco.RadioButtonList", DataTypeDatabaseType.Integer, preValues);
        }
コード例 #4
0
        public static void CreateDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "0", new PreValue(-1, "Auto", 1) },
                { "1", new PreValue(-1, "2 columns", 2) },
                { "2", new PreValue(-1, "3 columns", 3) }
            };

            UmbracoDataTypeService.InsertDataType(DataTypeName, BuiltInUmbracoDataTypes.DropDown, DataTypeDatabaseType.Nvarchar, preValues);
        }
コード例 #5
0
        public static void CreateDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "SecondSet", new PreValue(-1, "1", 1) },
                { "dropdownTimestep", new PreValue(-1, "30", 2) },
                { "enableClear", new PreValue(-1, "1", 3) },
                { "enableAutofill", new PreValue(-1, "1", 4) }
            };

            UmbracoDataTypeService.InsertDataType("Opening hours", "Jumoo.OpeningSoon", DataTypeDatabaseType.Ntext, preValues);
        }
コード例 #6
0
        public static void CreateCacheDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "auto", new PreValue(-1, "auto") },
                { "5 minutes", new PreValue(-1, "5 minutes") },
                { "10 minutes", new PreValue(-1, "10 minutes") },
                { "30 minutes", new PreValue(-1, "30 minutes") },
                { "1 hour", new PreValue(-1, "1 hour") }
            };

            UmbracoDataTypeService.InsertDataType("Cache", BuiltInUmbracoDataTypes.DropDown, DataTypeDatabaseType.Nvarchar, preValues);
        }
コード例 #7
0
        public static void CreateDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "Council plan", new PreValue(-1, "council-plan", 1) },
                { "Economic growth", new PreValue(-1, "economic-growth", 2) },
                { "Vulnerable people", new PreValue(-1, "vulnerable-people", 3) },
                { "Building resilience", new PreValue(-1, "building-resilience", 4) },
                { "Best use of resources", new PreValue(-1, "best-use-of-resources", 5) }
            };

            UmbracoDataTypeService.InsertDataType(DataTypeName, BuiltInUmbracoDataTypes.DropDown, DataTypeDatabaseType.Nvarchar, preValues);
        }
        internal static void CreateDataType()
        {
            IDictionary <string, PreValue> preValues = new Dictionary <string, PreValue>()
            {
                { "0", new PreValue(-1, "East Sussex County Council") },
                { "1", new PreValue(-1, "Eastbourne Borough Council") },
                { "2", new PreValue(-1, "Hastings Borough Council") },
                { "3", new PreValue(-1, "Lewes District Council") },
                { "4", new PreValue(-1, "Rother District Council") },
                { "5", new PreValue(-1, "Wealden District Council") }
            };

            UmbracoDataTypeService.InsertDataType(DataTypeName, PropertyEditor, DataTypeDatabaseType.Integer, preValues);
        }