EPiServer – Trying to get Correct Start Page Reference Inside a Job

I think this is a common issue when you create a job in EPiServer, you try to get the start page from the code and unfortunately the ContentReference.StartPage does not have the correct nor valid reference set in the variable. This post is about two possible solutions that you can use to solve this problem. … More EPiServer – Trying to get Correct Start Page Reference Inside a Job

EPiServer – How to Intercept the Download of a Media File without using Download Media

While researching about how to intercept the download of a media file we found several posts, like this one, that mentioned the use of DownloadMediaRouter.DownloadSegment to get the file name and send it as part of the content disposition header of the response. Unfortunately, in our project it did not work as expected in all … More EPiServer – How to Intercept the Download of a Media File without using Download Media

EPiServer – Get all Media Files filtered by Media Class Type and Name

While working in a project for a client, we had to develop a media importer process which had to save several Pdfs and Excel files to the CMS. The files were inside a zip file in conjunction with a json configuration file which details the properties of the files. We could have used the media … More EPiServer – Get all Media Files filtered by Media Class Type and Name

EPiServer – Disable CloudFlare in DXC Enviroments

When you are working with EPiServer in a DXC environment sometimes you can have issues with CloudFlare and its aggressive cache. This can cause problems with css and js files because the client will not receive the latest version of the files unless they clean their cache in the browser. So for this post, we … More EPiServer – Disable CloudFlare in DXC Enviroments

EPiServer – Disable Google Tag Manager by Reading Cookie

Even though this is not completely related to EPiServer, sometimes we need to give our clients the option to disable tracking them when for instance a user does not approve a GDPR modal. In this post, we are going to disable google tag manager which is set in a field in the home page and … More EPiServer – Disable Google Tag Manager by Reading Cookie

Handling Huge Number of Article Pages using Date Structured Container Pages in EPiServer

I have been inspired by some interesting post about how to handle large amounts of pages in EPiServer such as this one, this other one, and last but not the least this one. All of them point to use a more structured site, sometimes using categories and more often using the current date as part … More Handling Huge Number of Article Pages using Date Structured Container Pages in EPiServer