Example #1
0
        public string GetRoute()
        {
            var uiUrl = _moduleResourceResolver.ResolvePath("CMS", string.Empty).TrimStart("/".ToCharArray());

            uiUrl  = uiUrl.Replace("/CMS", string.Empty);
            uiUrl += "PerformFeedStatus/";

            return(uiUrl);
        }
 public FoundationSearchProvider(
     LocalizationService localizationService,
     ISiteDefinitionResolver siteDefinitionResolver,
     IContentTypeRepository <ContentType> contentTypeRepository,
     EditUrlResolver editUrlResolver,
     ServiceAccessor <SiteDefinition> currentSiteDefinition,
     LanguageResolver languageResolver,
     UrlResolver urlResolver,
     TemplateResolver templateResolver,
     UIDescriptorRegistry uiDescriptorRegistry,
     Mediachase.Commerce.Catalog.ReferenceConverter referenceConverter,
     ServiceAccessor <SearchManager> searchManagerAccessor,
     IContentLoader contentLoader,
     IModuleResourceResolver moduleResourceResolver,
     ServiceAccessor <SiteContext> siteContextAccessor,
     IClient client) :
     base(localizationService,
          siteDefinitionResolver,
          contentTypeRepository,
          editUrlResolver,
          currentSiteDefinition,
          languageResolver,
          urlResolver,
          templateResolver,
          uiDescriptorRegistry)
 {
     _languageResolver      = languageResolver;
     _localizationService   = localizationService;
     _referenceConverter    = referenceConverter;
     _searchManagerAccessor = searchManagerAccessor;
     _contentLoader         = contentLoader;
     _siteContextAcessor    = siteContextAccessor;
     EditPath = (contentData, contentLink, languageName) =>
     {
         var catalogPath = moduleResourceResolver.ResolvePath("Commerce", "Catalog");
         return($"{catalogPath}#context=epi.cms.contentdata:///{contentLink}");
     };
     _client = client;
 }