Posts

Episerver - Handling an SVG image type and displaying it using a Path tag

Image
In the current project that I'm on, there was an interesting request that they wanted to use SVG images for some of their things, such as logos and icons. This meant that they needed them rendered using the <Path> DOM element, not as an <Img>.
This was a tricky one and there wasn't very much information about how to accomplish this, as its not necessarily a common request. That being said, it does have its advantages, such as recoloring the vector using CSS.


In this post, we're going to go through the following:
Creating a new Media Descriptor that will handle the SVG file formatLooking at how SVGs are storedAzureBlob (DXP) vs FileBlob (Local)Extracting the XML and returning it
Contents Creating a Media DescriptorHow are SVGs stored? Cloud? Local?Using the Blob object to pull out the XMLConclusion Creating a Media DescriptorA media descriptor simply defines a set of properties for a specific file type.
These models are typically inherited from the ImageData class.

EpiServer DXP Deployment API PowerShell Scripts for CI/CD in Azure Devops - Part 3

Image
In my previous posts, we went over the deployment process in the EpiServer DXP environment. The first post went through the original methods that allow for deployment into the DXP environment. The second post went through update 313, which was a massive deployment API update, as well as how to use the API to export an environmental database, and how to sync down environments.


In this post, we're going to go through the following:
How to get access to the Deployment ScriptsHow to link the deployment scripts to your DevOps EnvironmentBuilding our solution and creating our artifact for deploymentCreation of our variable group for key storage Generating our API keys from the PAAS Portal
Contents Open Sourcing the Deployment ScriptsLinking the Deployment ScriptsArtifact Creation via Pipeline/BuildCreating a Variable GroupGenerating API Keys Via PAAS PortalConclusion Open Sourcing the Deployment Scripts for Public Use!If you've read my previous blog posts, you've seen the theory a…

EpiServer DXP Deployment API PowerShell Scripts for CI/CD in Azure Devops - Part 2

Image
In my last-post, we went over the deployment process in the EpiServer DXP environment. I mentioned that the next post would be related to using this within Azure DevOps, but I need to make a slight adjustment based on today's update.

As of today (4/27/2020), EpiServer released their weekly update #313, which included a lot of enhancements for this Deployment API.

In this post, we're going to go through the following:
The new features for the DXP Deployment API from this releaseHow to use the scripts in my previous post to take advantage of the sync-downHow to build a script to export your environment database
Contents Update 313 - What Is New?Powershell ScriptsContent Sync-DownExport Environment DatabaseConclusion
Update 313 - What is New? In this update, there were six updates to the DXP Deployment and API. Most of them are not relating to the deployment API, so we wont go into those in this post, but I will explain how to use the new API features.

These new EpiCloud Powershel…

EpiServer DXP Deployment API PowerShell Scripts for CI/CD in Azure Devops - Part 1

Image
In late-2019, EpiServer released one of their Beta programs, which would allow partners and developers the ability to control the DXP environment deployments via an API.

There have been a few blog posts (like this one by Anders Wahlqvist) on how to use these APIs in one-off instances, but none in how to make these into reusable generic PowerShell scripts.

What we will be going over in this post is how we use these concepts to create reusable Powershell scripts that can be used for any DXP deployment environment for any client or site.

In the next part of this series, we will cover how to set up a manual Release Pipeline to deploy into Integration.

This will eventually lead us to where we will be able to streamline the creation of a CI/DI Release Pipeline that publish all the way from Integration, to Preproduction, and finally to Production in an automated fashion that uses EpiServers deployment process.
Contents Deployment WorkflowPowershell ScriptsUpload Package to Staging AreaPublis…