Beispiel #1
0
        public override void Add()
        {
            var folderId = DataTypes.CreateFolder("Aub.Comments");

            DataTypes.Create(
                "CommentsEditor",
                "aubergine.CommentEditor",
                folderId,
                Umbraco.Core.Models.DataTypeDatabaseType.Integer,
                new Dictionary <string, string>());

            DataTypes.Create("CommentsSwitch",
                             "Our.Umbraco.Switcher",
                             folderId,
                             Umbraco.Core.Models.DataTypeDatabaseType.Integer,
                             new Dictionary <string, string>()
            {
                { "hideLabel", "" },
                { "switchOn", "1" },
                { "showIcons", "" },
                { "statusLeftRight", "" },
                { "onLabelText", "Allow Comments" },
                { "offLabelText", "No Comments" },
                { "switchClass", "blue" },
            });
        }