I needed to convert the type for some media files. Suddenly webp files were sent to the CMS from an external system and webp was not added to the ExtensionString in the MediaDescriptor yet. So they ended up as generic media (MediaData), instead of an ImageFile (ImageData). There is not an out of the box … Continue reading Convert media type in a migrationstep
Category: EPiServer
When using a wildcard in your search query like 'search.For(query+"*")' or when you used the reversed method suggested in the Breaking changes article Best Bets and Synonyms will stop working/will not work as they do a lookup on the query in the request. The Best Bets can be "fixed" by using a custom IPhraseCriterion like … Continue reading Best Bets, synonyms and wildcard queries
With the content definitions api you can "remotely manage definitions, such as Content types, Property Groups, and Property Data Types without deploying code to the Optimizely application or using the admin user interface." Personally, as a dinosaur, I think I will still do it the "old" way by creating content types in code, but in … Continue reading Content Definitions API Templates
First of all.... Happy New Year! While back I wrote a post about how to create term facets from attributes on contenttype properties. Doing a POC at the end of last year, about which I will post later, I remembered that I did not follow up on how to retrieve the facets created that way. … Continue reading Create Find facets based on attributes
When you have a need to use available localizations from e.g. a headless app, one way to do it is through a custom api. In this gist you can find a basic api controller that you could use. It uses the LocalizationService to retrieve all localizations grouped by culture, localizations with a specific key grouped … Continue reading Retrieve localizations through an api
In previous versions of Optimizely, when you wanted to use a different logger, it took a bit of work. Or you could use one of my providers. With CMS12 you can now just configure a different provider without the need of a custom provider. For Serilog add the following packages, I used the file sink, … Continue reading Use Serilog with CMS12
Within Episerver Commerce you can have a lot of rules for displaying a product to a visitor, e.g. if it's available for the current market. So it can happen that when you click on a main category or subcategory link there are no products displayed. To prevent this, as it can be quite annoying for … Continue reading “Filter” your commerce navigation
Imagine a site with 10+ instances and a lot of visitors and search requests. The find queries are tracked, to provide data for the auto suggest, and cached. And then... you get an error in Find: Too Many Requests. My first thought was to increase the value for StaticallyCacheFor. But it did not have as … Continue reading Offload your Episerver Find tracking
So your visitor is in a hurry and makes a typo in the search box. Chances are no results might be returned. By using the Bing Spellcheck API you can auto correct typos in the query and, maybe, return a result. As with the auto correct on your phone, it kinda depends on how smart … Continue reading Auto correct a search query
When your site relies on a lot of external API's, has a lot of JavaScript, images, Redis cache... and which site doesn't have most of these things these days, the loading of a page might go slower than you would like, even with extensive caching. There are a few things that I found can speed … Continue reading Speed up your site