Exemplo n.º 1
0
 public NewsPlugin(IPictureService pictureService,
                   ISettingService settingService, NewsSettings NewsSettings, IWebHelper webHelper)
 {
     this._settingService = settingService;
     this._NewsSettings   = NewsSettings;
     this._webHelper      = webHelper;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            var settings = new NewsSettings
            {
                QtdNewsPosts = 3,
                WidgetZone   = "home_page_before_news"
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.News.Fields.WidgetZone", "WidgetZone name");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.News.Fields.WidgetZone.Hint", "Enter the WidgetZone name that will display the HTML code.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.News.Fields.QtdNewsPosts", "Number of News items");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.News.Fields.QtdNewsPosts.Hint", "Enter the number of News items that will be displayed in view.");

            base.Install();
        }