Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PagesModuleDescriptor" /> class.
        /// </summary>
        public PagesModuleDescriptor(ICmsConfiguration configuration)
            : base(configuration)
        {
            pagesJsModuleIncludeDescriptor = new PagesJsModuleIncludeDescriptor(this);
            pagePropertiesJsModuleIncludeDescriptor = new PagePropertiesJsModuleIncludeDescriptor(this);
            seoJsModuleIncludeDescriptor = new SeoJsModuleIncludeDescriptor(this);
            pagesContentJsModuleIncludeDescriptor = new PagesContentJsModuleIncludeDescriptor(this);
            widgetsJsModuleIncludeDescriptor = new WidgetsJsModuleIncludeDescriptor(this);
            redirectsJsModuleIncludeDescriptor = new RedirectsJsModuleIncludeDescriptor(this);
            templatesJsModuleIncludeDescriptor = new TemplatesJsModuleIncludeDescriptor(this);
            historyJsModuleIncludeDescriptor = new HistoryJsModuleIncludeDescriptor(this);
            sitemapJsModuleIncludeDescriptor = new SitemapJsModuleIncludeDescriptor(this);

            RootEvents.Instance.PageRetrieved += Events_PageRetrieved;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PagesModuleDescriptor" /> class.
        /// </summary>
        public PagesModuleDescriptor(ICmsConfiguration configuration) : base(configuration)
        {
            pagesJsModuleIncludeDescriptor = new PagesJsModuleIncludeDescriptor(this);
            pagePropertiesJsModuleIncludeDescriptor = new PagePropertiesJsModuleIncludeDescriptor(this);
            seoJsModuleIncludeDescriptor = new SeoJsModuleIncludeDescriptor(this);
            pagesContentJsModuleIncludeDescriptor = new PagesContentJsModuleIncludeDescriptor(this);
            widgetsJsModuleIncludeDescriptor = new WidgetsJsModuleIncludeDescriptor(this);
            redirectsJsModuleIncludeDescriptor = new RedirectsJsModuleIncludeDescriptor(this);
            templatesJsModuleIncludeDescriptor = new TemplatesJsModuleIncludeDescriptor(this);
            masterPagesJsModuleIncludeDescriptor = new MasterPagesJsModuleIncludeDescriptor(this);
            historyJsModuleIncludeDescriptor = new HistoryJsModuleIncludeDescriptor(this);
            sitemapJsModuleIncludeDescriptor = new SitemapJsModuleIncludeDescriptor(this);
//            CategoryAccessors.Register<PageCategory, PageProperties>(PageProperties.CategorizableItemKeyForPages);
            CategoryAccessors.Register<PageCategoryAccessor>();

            RootEvents.Instance.PageRetrieved += Events_PageRetrieved;

            RegisterRenderingPageProperties();
        }