Example #1
0
 public override void Add(SectionGroup item)
 {
     base.Add(item);
     if (item.SectionContents != null && item.SectionContents.Any())
     {
         var contentService = new SectionContentProviderService();
         item.SectionContents.Each(m =>
         {
             m.SectionGroupId  = item.ID;
             m.SectionWidgetId = item.SectionWidgetId;
             contentService.Add(m);
         });
     }
     if (item.IsLoadDefaultData)
     {
         GenerateContentFromConfig(item);
         if (item.SectionContents != null && item.SectionContents.Any())
         {
             ISectionContentProviderService contentService = ServiceLocator.Current.GetInstance <ISectionContentProviderService>();
             item.SectionContents.Each(c =>
             {
                 contentService.Add(c);
             });
         }
     }
 }
 public SectionGroupController(ISectionGroupService sectionGroupService,
                               ISectionContentProviderService sectionContentProviderService,
                               IPackageInstallerProvider packageInstallerProvider)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _packageInstallerProvider      = packageInstallerProvider;
 }
Example #3
0
 public SectionGroupController(ISectionGroupService sectionGroupService,
                               ISectionContentProviderService sectionContentProviderService,
                               IWidgetBasePartService widgetService)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _widgetService = widgetService;
 }
 public SectionWidgetService(IWidgetBasePartService widgetService, ISectionGroupService sectionGroupService,
                             ISectionContentProviderService sectionContentProviderService, ISectionTemplateService sectionTemplateService,
                             IApplicationContext applicationContext, CMSDbContext dbContext)
     : base(widgetService, applicationContext, dbContext)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _sectionTemplateService        = sectionTemplateService;
 }
 public SectionGroupController(ISectionGroupService sectionGroupService,
                               ISectionContentProviderService sectionContentProviderService,
                               IWidgetBasePartService widgetService, IPackageInstallerProvider packageInstallerProvider)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _widgetService            = widgetService;
     _packageInstallerProvider = packageInstallerProvider;
 }
 public SectionWidgetService(IWidgetBasePartService widgetService, ISectionGroupService sectionGroupService,
                             ISectionContentProviderService sectionContentProviderService, ISectionTemplateService sectionTemplateService,
                             IApplicationContext applicationContext, IPluginLoader pluginLoader)
     : base(widgetService, applicationContext)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _sectionTemplateService        = sectionTemplateService;
     _pluginLoader = pluginLoader;
 }
 public SectionGroupController(ISectionGroupService sectionGroupService,
                               ISectionContentProviderService sectionContentProviderService,
                               IWidgetBasePartService widgetService, IPackageInstallerProvider packageInstallerProvider,
                               ILocalize localize,
                               IWidgetActivator widgetActivator)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _widgetService            = widgetService;
     _packageInstallerProvider = packageInstallerProvider;
     _widgetActivator          = widgetActivator;
     _localize = localize;
 }
Example #8
0
 public SectionGroupService(ISectionContentProviderService sectionContentProviderService,
                            IPluginLoader pluginLoader, IApplicationContext applicationContext, CMSDbContext dbContext) : base(applicationContext, dbContext)
 {
     _sectionContentProviderService = sectionContentProviderService;
     _pluginLoader = pluginLoader;
 }
 public SectionWidgetService(ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionWidgetService()
 {
     _sectionGroupService           = ServiceLocator.Current.GetInstance <ISectionGroupService>();
     _sectionContentProviderService = ServiceLocator.Current.GetInstance <ISectionContentProviderService>();
 }
 public SectionContentCallToActionController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionGroupController(ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionContentImageController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionContentCallToActionController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionGroupController(ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService)
 {
     _sectionGroupService = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionContentImageController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }
Example #17
0
 public SectionContentParagraphController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }
 public SectionContentParagraphController(ISectionContentProviderService sectionContentProviderService)
 {
     _sectionContentProviderService = sectionContentProviderService;
 }