Author: Nicola
-
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;…
-
EPiServer: Create a Gallery / ImageSlider Block
UPDATE: Please follow this new post instead for the latest carousel I have developed using Bootstrap 4. One of the tasks I needed to do was to create a block that takes in a list of Images and displays these in an ImageSlider, with the help of almighty Javascript. This might not be the best solution…
-
EPiServer: Attach Database Failed – Access is Denied
I wanted to explore the EPiServer 8.0 database and so I went to clone the MDF file located within my solution and placed the copy in a backup folder. I then went to open SQL Management studio and tried attaching the MDF file: 1. Right Click on the Databases folder 2. Click ‘Attach’ 3. Find…