Blog posts by Shahin Alborz2014-02-09T20:30:35.0000000Z/blogs/Shahin-Alborz/Optimizely WorldYet another… How to upgrade to EPiServer 7.5http://shahinalborz.se/?p=7782014-02-09T20:30:35.0000000ZI struggled with the upgrading from EPiServer CMS 7.1 to EPiServer 7.5, even if there are several good blog posts about this already (Ted & Gustaf, David Vujic) it seems everyone comes up with new obstacles so I thought I’d share my step-by-step guide. As a sidenote, I can’t help but feeling slightly annoyed by […]On-page editing and forms editing stop working in EPiServer 7http://shahinalborz.se/?p=6382013-04-23T13:58:42.0000000ZWorking in EpiServer 7 we discovered that some pages, without any obvious reason, were suddenly not editable anymore. Navigating in edit mode, the particular pages did not get the onpage edit borders and clicking the forms editing button would just make the ajax loader keep going forever. No errors in the logfile either. After some […]Custom settings for link properties in EPiServer CMShttp://shahinalborz.se/?p=6042013-04-01T16:16:00.0000000ZEven though a solution for this is already out there, albeit somewhat incoherent, way too many EPiServer websites lack the ability to limit the selection of pages editors may choose from when selecting a link in Edit mode. Editors cost money, and we need to keep them efficient and happy; that is in fact one [...]EPiServer custom property: Multiple Category checkbox list from specific sub categoryhttp://shahinalborz.se/?p=5052013-04-01T15:29:59.0000000ZSometimes editors have to select multiple categories from a long list, including other category nodes which might not be relevant for that page. This is a custom property which you can configure to only list categories from a certain category parent. The editors can then select multiple categories directly from a list of checkboxes. Configure [...]Provider load failure (in an EPiServer website)http://shahinalborz.se/?p=5822012-08-08T18:04:09.0000000ZI recently got the exception “System.Management.ManagementException: Provider load failure” in a EPiServer CMS 5 website. I had received the same exception before and saw that the stack trace appeared to point towards the component EPiServer.Community.Licensing which led me to believe that there was a problem with the license file. Making sure that both the EPiServer [...]Javascript files, CSS files and images inexplicably requires login in EPiServerhttp://shahinalborz.se/?p=5892012-06-17T23:06:21.0000000ZI recently experienced some files, such as javascripts and images, could not load in a website running EPiServer. When testing with the url directly to one of these files the EPiServer login page appeared. Logging in wouldn’t even help. After checking file rights I noticed that the file had an unusual attribute, which caused the [...]Extension for getting friendlyUrl when all you have is the internal url in EpiServerhttp://shahinalborz.se/?p=5472012-01-23T11:06:19.0000000ZHere’s a simple extension method for EPiServer when you need to get the friendly url from an internal url. Note the last line checking if the Uri is an absoluteUri first. If you try to get the AbsoluteUri if it’s not you will get the following exception: InvalidOperationException: This operation is not supported for a [...]Get typed pagedata by page guid in EPiServer CMShttp://shahinalborz.se/?p=5322012-01-03T16:44:09.0000000ZIn EpiServer you might sometimes need to get PageData, preferably typed, from a page guid. Here is a simple method for getting a page only by sending a guid as an argument, which we can do thanks to the PermanentPageLinkMap class, and results of other pagetypes than the requested are ignored, as well as any [...]Create EPiServer page programmatically with PageTypeBuilderhttp://shahinalborz.se/?p=4952011-09-29T21:23:45.0000000ZHere is just a few examples of how to create and modify pages in EPiServer CMS 5/6 when you are using PageTypeBuilder. Create new page: ?View Code CSHARP1 2 3 4 5 6 7 8 PageReference targetContainer = PageReference.StartPage; MyPageType newPage = (MyPageType)DataFactory.Instance.GetDefaultPageData(targetContainer, PageTypeResolver.Instance.GetPageTypeID(typeof(MyPageType)).Value);   newPage.PageName = "This is the title"; newPage.MyProperty = "Lorem ipsum"; [...]Context menu missing in EPiServer CMShttp://shahinalborz.se/?p=4462011-05-02T16:48:35.0000000ZIf the right click context menu is missing in EPiServer CMS, the reason might not be obvious. First of all you should check if the context menu javascript is visible in the html source code, which should include something like this: var menu1 = new ContextMenu(); If the javascript of the context menu is visible, the problem [...]AD connection denied after full search using membership providerhttp://shahinalborz.se/?p=3772011-03-18T13:30:43.0000000ZIf you have a custom membership provider connected to an Active Directory and a full user search is made in EPiServer admin mode, the AD can stop connecting with the user running the website. The error generated is “Unknown error (0×80005000)” and the solution is to disable full searches for users in the custom membership [...]EPiServer custom property dropdownhttp://shahinalborz.se/?p=3422011-02-18T10:45:03.0000000ZSome EPiServer developers still create their own custom property for the only purpose of having a simple dropdown (aka combobox / select list) for editors to choose from a predefined list. If you only need a simple key/value dropdown, there’s no need to create a custom property – all you need is to configure it [...]Extensions for LinkItemCollection – Convert to pages and prepare Link Items for repeater (EPiServer)http://shahinalborz.se/?p=822010-12-03T10:40:31.0000000ZLinkItemCollection is a very useful property type in EPiServer. However, quite often you need to transform, convert or in some ways prepare a LinkItemCollection before you can use it the way you want to. There have been several posts in the EPiServer community regarding this (Joel Abrahamsson and Frederik Vig have blogged nice solutions) but [...]Extensions for LinkItemCollection – Convert to pages and prepare Link Items for repeaterhttp://shahinalborz.se/?p=822010-12-03T10:40:31.0000000ZLinkItemCollection is a very useful property type in EPiServer. However, quite often you need to transform, convert or in some ways prepare a LinkItemCollection before you can use it the way you want to. There have been several posts in the EPiServer community regarding this (Joel Abrahamsson and Frederik Vig have blogged nice solutions) but [...]