Category: Optimizely (Episerver)
-
Generate a sitemap.xml for your Episerver website
In this post, I will cover how you can generate a sitemap.xml for your Episerver website. All credits to Geta SEO Sitemaps, you will now be able to generate one in under 5 minutes! Download and install the Nuget package “Geta.SEO.Sitemaps” to your Episerver application Build and run your application Navigate to Admin > Tools…
-
Episerver CMS Content Migration
In this post, I will cover how I was able to programmatically migrate content from a non-Epi CMS to an empty Episerver website. The trick is to generate a JSON file of all your web content from the previous CMS and programmatically push these to Epi. High level, here are the steps I took: I…
-
Episerver – Could not find stored procedure ‘netCategoryListAll’
My scenario I tried creating a new database schema for my Episerver website that uses the createDatabaseSchema=”true” on the episerver.framework config node. This creates a new database schema if it detects there’s none for the database specified in the config. However, when I first ran my Episerver website which was configured to an empty database, I got the following error:…
-
How to order tabs of properties for a page type in Episerver
If you have quite a complicated page/block type where you end up having more than 5 tabs of properties, then you start thinking of sorting these tabs too. To achieve this, make sure to use the attribute [GroupDefinition] and specify the Order. [GroupDefinitions] public static class MyGroupNames { [Display(Order = 50)] public const string Banner…
-
Episerver: How to upload media assets in bulk
Today I created a small tool in Episerver that reads through my local file system and programmatically uploads all media files and folders in the same structure as they are in the file system. As of this writing, Episerver does not currently support uploading of folders and subdirectories. I have developed the tool to show within the Episerver…
-
Embedding a Youtube Video on EPiServer
Several pages in our website require embedded Youtube videos. So I created a Youtube block that accepts the following Content properties: Title Description Embed link While it’s Settings properties are: Width Height Allow Full Screen Auto Play Here’s my code for the model: public class YoutubeBlock : BlockData { [Display( Name = “Title”, GroupName =…
-
How to Create an RSS Feed in EPiServer (ASP.NET MVC)
Thanks to Ted and a guy from CodeInside for your blogs which helped come up with this solution. Problem: Create an RSS feed for ASP.NET MVC Website with EPiServer Solution: We need three things 1. RssResult class 2. RssPage page type 3. RssPageController which creates the xml rss feed So let’s begin with the RssResult…
-
EPiServer 7.x vs EPiServer 8
I was tasked to find out whether our current active license for CMS 7 will still work with EPiServer 8. So I did some research and thought of sharing it here as well. Summary Version: Good news – Our 7.x license will continue to work for EPiServer 8.0 Current EPiServer version available in NuGet is…
-
Int64 / Long / Bigint Property is not supported in EPiServer 8
Yes, you read it right. You can’t have a model property of type Int64 / long. I came across an issue where in I have a model that requires to store an Id (from the database) as one of it’s properties. It so happens that most tables we have at work go by an Id…
-
Using XForms in EPiServer 8 MVC
Ha, another milestone for me – I was able to create an XForm in EPiServer and hook it up to a block! First step I took: Create a Form block, which consists of the following properties: public class FormBlock { public virtual string Heading { get; set; } public virtual XForm Form { get; set;…