Blog posts by Erik Nordin2016-11-23T13:17:29.0000000Z/blogs/Erik-Nordin/Optimizely WorldPreventing scroll to top on paste in TinyMCEhttp://antecknat.se/blog/?p=2682016-11-23T13:17:29.0000000ZThe current TinyMCE version in Episerver has some flaws which are a bit of a pain for editors. One of them is when using Chrome/Safari and pasting content into the TinyMCE editor. The content is pasted where the cursor is, but the page scrolls to the top. We have customers that frequently updates long articles, […]Modify search in navigationhttp://antecknat.se/blog/?p=2572016-05-19T10:23:34.0000000ZSearching in the navigation bar with multiple sites, multiple languages and a lot of content rarely gives you the result you want. Or.. To be honest. Just having the same name on two pages gives you headache. Luckily we have the power to change that! As you can see, we have two pages with the same name. I know that […]XhtmlString: Render blocks and convert link to external without HtmlHelperhttp://antecknat.se/blog/?p=2512016-03-07T10:18:03.0000000ZHere are two code snippets to help you make a XhtmlString display external links instead of the internal ones and also render blocks, dynamic content etc. This could be helpful if you don’t have access to a HtmlHelper like in a WebApi. The first one just converts links. It loops through all fragments and converts internal […]Hide unpublished links for visitorhttp://antecknat.se/blog/?p=2422016-02-22T09:41:00.0000000ZWe just migrated a system from a custom built CMS into EPiServer. If the editor added a link to an unpublished page in the old CMS, it was automatically unlinked for the visitor until the page was published. We tried to find a built in way of doing in this in EPiServer, but could not […]Create new version of filehttp://antecknat.se/blog/?p=2332015-05-05T14:05:33.0000000ZWith the old VPP file system you could create a new version of a file by right click the file and select Create new version. With the new file system this function has disappeared. You can however update a file by uploading a new file with the same name. A customer to us needed the old method back because […]Convention for EPiServer Find to ignore large fileshttp://antecknat.se/blog/?p=2232015-02-23T17:51:14.0000000ZEPiServer Find has a limit when indexing files (last I heard this was 50MB), but nothing really happens if you try to index a large files except that you get an error message from the indexing job. But if you have some very large files, you might bump in to performance problems on the server. […]Add CultureSpecific to an exisiting block area – keep the datahttp://antecknat.se/blog/?p=2122013-09-19T12:12:23.0000000ZRecently we built a globalized site in EPiServer 7. When the page was filled with content, the client wished that the block area should be the same for all languages. Once the page was launched the customer realized that they needed to have different blocks in different languages, which meant that we needed to make […]Find page id from page files folder idhttp://antecknat.se/blog/?p=1992012-08-27T11:09:26.0000000ZA customer had an URL to a page file, but couldn’t locate the page where the file was stored. And somehow the search in EPiServer didn’t give any hits on the file, so started digging around in the database and found the column ExternalFolderID in the table tblPage. So a simple query like “SELECT pkID […]Handle children with Action window pluginhttp://antecknat.se/blog/?p=1912012-05-11T12:18:29.0000000ZEvery now and then I bump in to a “problem” where I have to delete children from a node or copy/move children from one node to another. The first time I ran into this problem, I made a gui plugin for the action window to solve this for me. And now, a few years later, […]How to get a page property value from the start page in EPiServerhttp://antecknat.se/blog/?p=1852012-03-21T12:20:55.0000000ZWhen browsing through google analytics, it’s interesting to see what people search for to find your blog. So, I will try to make a few blog posts about the most frequent search terms so it will be easier to find. 🙂 If you have a property that you need to use all over the site, […]Error in UI-path when upgrading from EPiServer 5 to 6http://antecknat.se/blog/?p=1602011-05-10T15:29:30.0000000ZThe other day we were upgrading a site for a customer from EPiServer 5 to EPiServer 6. In the upgrade process an exception was thrown telling us: At C:\Program Files (x86)\EPiServer\CMS\6.0.530.0\Upgrade\System Scripts\Upgrade Site (SqlServer).ps1:361 char:29 + $newUiUrl = $uiUrl.Replace <<<< ($uiPath, $uiPath+”/CMS”) System.Management.Automation.ParentContainsErrorRecordException: Cannot convert argument “1”, with value: “/CMS”, for “Replace” to type […]Find miss matches between EPiserver- and PageTypeBuilder propertieshttp://antecknat.se/blog/?p=1452010-11-10T12:28:59.0000000ZUsing PageTypeBuilder when creating EPiServer web sites? Then you're probably aware of when removing properties in code, they won't change in EPiServer. Same thing when changing a property type in PTB, it won't change in EPiServer. In larger projects with a lot of inheritance between page types this can be a really annoying, going through [...]Find mismatches between EPiserver- and PageTypeBuilder properties (Updated)http://antecknat.se/blog/?p=1452010-11-10T12:28:59.0000000ZUpdated: 2010-11-10 16:23, see more at the end of this post! Using PageTypeBuilder when creating EPiServer web sites? Then you're probably aware of when removing properties in code, they won't change in EPiServer. Same thing when changing a property type in PTB, it won't change in EPiServer. In larger projects with a lot of inheritance [...]Match EPiServer properties and Page Type Builder properties (Updated)http://antecknat.se/blog/?p=1452010-11-10T12:28:59.0000000ZUpdated: 2011-09-21, Lee Crowe has updated this plugin. Please check out his blog post: Introducing Page Type Builder UI Updated: This can now be found on GitHub: https://github.com/eriknordin/PTB-Helpers Updated: 2010-11-10 16:23, see more at the end of this post! Using PageTypeBuilder when creating EPiServer web sites? Then you’re probably aware of when removing properties in […]Make your PropertyNumber a bit widerhttp://antecknat.se/blog/?p=1382010-11-04T11:19:37.0000000ZThe default style for PropertyNumber in EPiServer is often a bit short if you have number larger than 999 and it also aligns the text to left. An easy way around this is to use EPiServer PropertyControlClassFactory. Just create a “PropertyNumberWideControl” that inherits PropertyNumberControl and override CreateEditControls to modify the style as you feel like. […]Quick way to create checkboxlist / dropdownlist propertieshttp://antecknat.se/blog/?p=1252010-06-09T11:38:54.0000000ZIn EPiServer there is a easy way to create a checkbox list property by extending some existing classes. In this example I will fetch the children for the start page and display them. In a future blog post I will show you how to do the same with a dropdown list control, and also show […]Creating classes for PageTypeBuilder in an existing projecthttp://antecknat.se/blog/?p=1122009-11-02T17:27:04.0000000ZUpdate: This can now be found on GitHub: https://github.com/eriknordin/PTB-Helpers While everyone else is creating cool gadgets for the new site center I was appointed to update an “old” site with some new functionality. And since PageTypeBuilder was introduced in my EPiServer life, and don’t feel like working without it in any project. If this would’ve […]PageTypeBuilder – makes developing with EPiServer funnyhttp://antecknat.se/blog/?p=1042009-08-26T10:56:48.0000000ZAs you may have noticed over the last month, Joel Abrahamsson has created a module to EPiServer called PageTypeBuilder. In a short explanation PageTypeBuilder brings joy into developing with EPiServer! No more need for ranting around in admin mode, no more need of synchronizing page types between dev – test- stage – live! You get […]Update: Code Snippets to PageTypeBuilderhttp://antecknat.se/blog/?p=982009-08-03T11:41:21.0000000ZUPDATE: The code snippets are updated, read more in this blog post. Since the way of including properties in PageTypeBuilder has been changed, so has the snippets. This ZIP-package includes nine different snippets: ptpbool – Selected/Not selected ptpdate – Date ptpimage – URL to image ptpnumber- Integer ptpobject – You decide.. 🙂 ptpstring – Short […]Code Snippets to PageTypeBuilderhttp://antecknat.se/blog/?p=752009-06-29T16:03:26.0000000ZUPDATE: These snippets are out of date, download from this post instead For you who have developed with the open source CMS N2 CMS, I guess you fell in love in how you are in control over the page type properties. And as a few of you have might notice the newly announced EMVP Joel […]