Esempio n. 1
0
        private void Global_RoutesRegistrating(object sender, EPiServer.Web.Routing.RouteRegistrationEventArgs e)
        {
            var externalReviewOptions = ServiceLocator.Current.GetInstance <ExternalReviewOptions>();

            GlobalFilters.Filters.Add(new ConvertEditLinksFilter());

            RegisterEditPageGet(e, externalReviewOptions);
            RegisterAddPinPost(e.Routes, externalReviewOptions);
        }
        private void Global_RoutesRegistrating(object sender, EPiServer.Web.Routing.RouteRegistrationEventArgs e)
        {
            var externalReviewOptions = ServiceLocator.Current.GetInstance <ExternalReviewOptions>();

            if (!externalReviewOptions.IsEnabled)
            {
                return;
            }

            GlobalFilters.Filters.Add(new ConvertEditLinksFilter());

            RegisterEditPageGet(e, externalReviewOptions);
            RegisterEditableActionPost(e.Routes, externalReviewOptions, nameof(PageEditController.AddPin));
            RegisterEditableActionPost(e.Routes, externalReviewOptions, nameof(PageEditController.RemovePin));
            RegisterLoginPage(e.Routes, externalReviewOptions);
            RegisterSubmitLoginPage(e.Routes, externalReviewOptions);
        }