public HomeController(
            IAdvancedSitemapService sitemapService,
            IShapeFactory shapeFactory)
        {
            _sitemapService = sitemapService;

            Shape = shapeFactory;
        }
        public HomeController(
            IAdvancedSitemapService sitemapService,
            IShapeFactory shapeFactory)
        {
            _sitemapService = sitemapService;

            Shape = shapeFactory;
        }
 public AdminController(
     IContentManager contentManager,
     IContentDefinitionManager contentDefinitionManager,
     IAdvancedSitemapService sitemapService,
     IShapeFactory shapeFactory,
     INotifier notifier,
     IOrchardServices services)
 {
     _sitemapService = sitemapService;
     _services       = services;
     Shape           = shapeFactory;
     T = NullLocalizer.Instance;
 }
 public AdminController(
     IContentManager contentManager,
     IContentDefinitionManager contentDefinitionManager,
     IAdvancedSitemapService sitemapService,
     IShapeFactory shapeFactory,
     INotifier notifier,
     IOrchardServices services)
 {
     _sitemapService = sitemapService;
     _services = services;
     Shape = shapeFactory;
     T = NullLocalizer.Instance;
 }
 public AdminController(
     IAdvancedSitemapService sitemapService,
     IShapeFactory shapeFactory,
     INotifier notifier,
     IOrchardServices services,
     ISignals signals)
 {
     _sitemapService = sitemapService;
     _notifier       = notifier;
     _services       = services;
     _signals        = signals;
     Shape           = shapeFactory;
     T = NullLocalizer.Instance;
 }
 public AdminController(
     IAdvancedSitemapService sitemapService,
     IShapeFactory shapeFactory,
     INotifier notifier,
     IOrchardServices services,
     ISignals signals)
 {
     _sitemapService = sitemapService;
     _notifier = notifier;
     _services = services;
     _signals = signals;
     Shape = shapeFactory;
     T = NullLocalizer.Instance;
 }
        public SitemapContentHandler(
            ISignals signals,
            IAdvancedSitemapService sitemapService)
        {
            _signals = signals;
            _sitemapService = sitemapService;

            OnPublished<ContentItem>((ctx, item) => {
                var activeContentTypes = _sitemapService.GetIndexSettings()
                    .Where(m => m.IndexForDisplay || m.IndexForXml)
                    .Select(m => m.Name)
                    .ToList();
                if (activeContentTypes.Contains(ctx.ContentItem.ContentType)) {
                    _signals.Trigger("WebAdvanced.Sitemap.Refresh");
                }
            });
        }
Exemple #8
0
        public SitemapContentHandler(
            ISignals signals,
            IAdvancedSitemapService sitemapService)
        {
            _signals        = signals;
            _sitemapService = sitemapService;

            OnPublished <ContentItem>((ctx, item) => {
                var activeContentTypes = _sitemapService.GetIndexSettings()
                                         .Where(m => m.IndexForDisplay || m.IndexForXml)
                                         .Select(m => m.Name)
                                         .ToList();
                if (activeContentTypes.Contains(ctx.ContentItem.ContentType))
                {
                    _signals.Trigger("WebAdvanced.Sitemap.Refresh");
                }
            });
        }
Exemple #9
0
        public HomeController(
            IAdvancedSitemapService sitemapService,
            IShapeFactory shapeFactory,
            ICacheManager cacheManager,
            IClock clock,
            IContentManager contentManager,
            IEnumerable <ISitemapRouteFilter> routeFilters,
            IEnumerable <ISitemapRouteProvider> routeProviders)
        {
            _sitemapService = sitemapService;
            _cacheManager   = cacheManager;
            _clock          = clock;
            _contentManager = contentManager;
            _routeFilters   = routeFilters;
            _routeProviders = routeProviders;

            Shape = shapeFactory;
        }
        public HomeController(
            IAdvancedSitemapService sitemapService,
            IShapeFactory shapeFactory,
            ICacheManager cacheManager,
            IClock clock,
            IContentManager contentManager,
            IEnumerable<ISitemapRouteFilter> routeFilters,
            IEnumerable<ISitemapRouteProvider> routeProviders)
        {
            _sitemapService = sitemapService;
            _cacheManager = cacheManager;
            _clock = clock;
            _contentManager = contentManager;
            _routeFilters = routeFilters;
            _routeProviders = routeProviders;

            Shape = shapeFactory;
        }
 public SitemapExportHandler(IAdvancedSitemapService sitemapService)
 {
     _sitemapService = sitemapService;
 }
 public SitemapRecipeHandler(IAdvancedSitemapService sitemapService)
 {
     _sitemapService = sitemapService;
     Logger = NullLogger.Instance;
 }
 public SitemapRecipeHandler(IAdvancedSitemapService sitemapService)
 {
     _sitemapService = sitemapService;
     Logger          = NullLogger.Instance;
 }
Exemple #14
0
 public SitemapExportHandler(IAdvancedSitemapService sitemapService)
 {
     _sitemapService = sitemapService;
 }