<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Alexander Haneng</title><link href="http://world.optimizely.com" /><updated>2016-05-03T09:47:41.0000000Z</updated><id>https://world.optimizely.com/blogs/Alexander-Haneng/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>EPiServer Custom Property for Dynamic Content Plugin</title><link href="http://episerverblog.wordpress.com/?p=206" /><id>We needed to give the editors a simple way of using variable amounts that could change over time inline in the text. These amounts needed to be placed inline (RenderAsBlockElement) in the Tiny MCE text editor for example: You need to pay $1000 to us by the end of august. The EPiServer documentation for CMS &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2016/05/03/episerver-custom-property-for-dynamic-content-plugin/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;EPiServer Custom Property for Dynamic Content&amp;#160;Plugin&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=206&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2016-05-03T09:47:41.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Override TinyMCE settings for Paste in EPiServer CMS 8</title><link href="http://episerverblog.wordpress.com/?p=192" /><id>During the last days I have revived complaints from our editors regarding that to much junk gets pasted into the XHtml text-editors. I decided to try&#160;to clear all the class and styles and other junk during paste (CTRL+ V) in to XHtml editor. Eliminating the old paste to notepad first approach. It&#160;is of great concern &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2015/04/24/override-tinymce-settings-for-paste/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Override TinyMCE settings for Paste in EPiServer CMS&amp;#160;8&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=192&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2015-04-24T14:00:22.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Get the “owner” of this content</title><link href="http://episerverblog.wordpress.com/?p=184" /><id>Sometimes you want to know if a certain content is used somewhere on the website, in my case I wanted to get the language from the page where&#160;a certain PDF was used to decide if it should be presented in the search result for that specific language. There is no complete way to accomplish this &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2015/02/26/get-the-owner-of-this-content/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Get the &amp;#8220;owner&amp;#8221; of this&amp;#160;content&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=184&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2015-02-26T10:33:39.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>The mysteri of Caching in EPiServer</title><link href="http://episerverblog.wordpress.com/?p=173" /><id>There are 3 different settings that is good to know about when working with EPiServer. Outputcache IIS will generate static content of pages and serves them faster that way. To enable this feature add httpCacheExpiration=&amp;#8221;0:20:0&amp;#8243; (for example cache for 20 minutes) to the applicationSettings section in episerver.config Yo can also use the [ContentOutputCache] in the &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2014/09/16/the-mysteri-of-caching-in-episerver/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;The mysteri of Caching in&amp;#160;EPiServer&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=173&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2014-09-16T13:42:07.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Working with Categories and languages</title><link href="http://episerverblog.wordpress.com/?p=169" /><id>Our editors want the list of categories to be simple to work with, to reduce the steps we can preselect the root of each language so that when working with a page in a specific language, only the language specific categories are displayed. You can then create a structure in the category tree as following. &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2014/06/17/working-with-categories-and-languages/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Working with Categories and&amp;#160;languages&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=169&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2014-06-17T16:55:16.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Displaying file size for your MediaData</title><link href="http://episerverblog.wordpress.com/?p=160" /><id>Creating a document link as file.pdf(230kB ) may seem like a simple task&amp;#8230; Well now it is&amp;#8230; My Generic media Helper to get the file size And som magic sprinkle of events &amp;#160; Usage Enjoy!&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=160&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2014-06-11T17:56:01.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>New web site built on bootstrapjs</title><link href="http://episerverblog.wordpress.com/?p=156" /><id>New web site built on bootstrapjs Randomit.se is my latest web site built completly with Bootstrap js. The whole site took about 1 hour to set up and runs well on all platforms with responsive design. &amp;#160;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=156&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2013-09-17T08:50:26.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>EPiServer 7 MVC Top menu</title><link href="http://episerverblog.wordpress.com/?p=144" /><id>&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=144&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2013-08-21T09:04:06.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Export to Excel</title><link href="http://episerverblog.wordpress.com/?p=110" /><id>There are a couple of different ways to do this, but if your data is contained in a GridView then the most convenient way to accomplish this is simply to: &amp;#160;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=110&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2013-03-25T15:51:31.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Export XForms data to Excel fails when more than 1000 rows</title><link href="http://episerverblog.wordpress.com/?p=111" /><id>I have notice that an exception is thrown if you try to export more than 1000 rows of data to excel in EPiServer CMS 6.0 R2. The problem can emerge if you have a lot of&#160;answers&#160;in a XForm survey for example. The exception info that is shown is:&#160;The URL-encoded form data is not valid. And&#160;System.InvalidOperationException: &amp;#8230; &lt;a href=&quot;https://episerverblog.wordpress.com/2012/10/05/export-xforms-data-to-excel-fails-when-more-than-1000-rows/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Export XForms data to Excel fails when more than 1000&amp;#160;rows&lt;/span&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=episerverblog.wordpress.com&amp;#038;blog=28555576&amp;#038;post=111&amp;#038;subd=episerverblog&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-10-05T12:55:33.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>FindPagesWithCriteria works different in CMS 6 R2</title><link href="http://episerverblog.wordpress.com/?p=99" /><id>I am currently upgrading a site to run under EPiServer CMS 6 R2 One thing that struck me was that I got zero results back when using code that earlier had been tested and worked. The code below works fine in CMS 6.0: DataFactory.Instance.FindPagesWithCriteria(PageReference.StartPage, criteria); After the R2 upgrade that code yielded no results. The [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=99&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-02-27T15:05:25.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Epi R2 and TinyMCE stop working properly</title><link href="http://episerverblog.wordpress.com/2012/01/31/epi-r2-and-tinymce-stop-working-properly/" /><id>I am struggling with an R2 upgrade and have faced a lot of problems lately. We use a TinyMCEPlugin to configure Tiny and the CSS. We use:&#160;uiEditorCssPaths=&amp;#8221;site.css&amp;#8221; to display the styles in the editor and on the web, note we are not using an editor.css here. (Because EditMenuName is not a valid CSS-entity and wont [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=96&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-01-31T14:43:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Upgrading EPiServer CMS 6 To 6R2 For dummys</title><link href="http://episerverblog.wordpress.com/?p=78" /><id>Ok so its time for an yearly upgrade, here is my resume on how I succeeded with the whole process. 1. Download the installer from Episerver. 2. If you are using TFS Check out the whole project for Edit. 3. If you are using some form of config transform the chances are that you have [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=78&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-01-20T09:17:24.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>MVC3 Validation using data annotations</title><link href="http://episerverblog.wordpress.com/?p=71" /><id>I recently created a contact form for my latest project bankrutt.se I used a model for my contact entity and the view was auto-generated nicely. One thing that struck me was that the form only validated if any text was entered, how about e-mail validation? It seems that you would have to create your own [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=71&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-01-13T13:13:41.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>MVC3 asp.net 4.0 Entity Framework 4.02 SQLCE 4 and SEO part 2 MVCSitemapProvider</title><link href="http://episerverblog.wordpress.com/?p=66" /><id>I am currently playing around with the MVC Sitemap provider for my new website bankrutt.se&#160;and have discovered the easiest way to create a top menu in MVC3. The top menu shipped in the default MVC3 template&#160;don&amp;#8217;t&#160;have support for highlighting the selected node in the menu. This is a must and the easiest way to&#160;achieve&#160;this is [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=66&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-01-13T10:08:14.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>MVC3 asp.net 4.0 Entity Framework 4.02 SQLCE 4 and SEO part 1</title><link href="http://episerverblog.wordpress.com/?p=61" /><id>I am currently struggling with an idea to create a SEO-friendly site&#160;Bankrutt.se&#160;with&#160;asp.net 4.0&#160;running&#160;MVC3&#160;with&#160;razor&#160;and&#160;Entity Framework 4.02. The database is the new&#160;SQLCE 4.0. The whole solution is hosted externally running asp-net 4.0 x64. I had a nice SQLite solution earlier but as you might noticed SQLite is still only shipped as X86. Since my web hosting haven&amp;#8217;t [...]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=61&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2012-01-12T14:58:11.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Create PDF direct from HTML with IText</title><link href="http://episerverblog.wordpress.com/?p=34" /><id>The most convenient way to produce a PDF from web content must be the use of IText.HTMLWorker. This is a sample to get you going.&#160; Download the IText library for .net here http://sourceforge.net/projects/itextsharp/&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=34&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2011-10-27T15:30:21.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Jquery datetimepicker calendar</title><link href="http://episerverblog.wordpress.com/?p=25" /><id>Among a lot of cool things the datetimepicker can show week numbers and have culture support.&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=25&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2011-10-25T08:32:31.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Simple clean AJAX with jquery and [WebMethod]</title><link href="http://episerverblog.wordpress.com/?p=18" /><id>Include Jquery.js Add this to your aspx $(document).ready(function () { $.ajax({ type: &amp;#8220;POST&amp;#8221;, url: &amp;#8220;WebForm1.aspx/DoShit&amp;#8221;, data: &amp;#8220;{source:&amp;#8217;web&amp;#8217;}&amp;#8221;, contentType: &amp;#8220;application/json; charset=utf-8&amp;#8243;, dataType: &amp;#8220;json&amp;#8221;, success: function(msg) { alert(msg.d); } }) }); And on the server side [WebMethod] public static string DoShit(string source) { return DateTime.Now.ToString() +&amp;#8221; &amp;#8221; +source; }&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=18&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2011-10-20T08:59:52.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>View Event logs in EPiServer admin mode</title><link href="http://episerverblog.wordpress.com/?p=3" /><id>&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=episerverblog.wordpress.com&amp;amp;blog=28555576&amp;amp;post=3&amp;amp;subd=episerverblog&amp;amp;ref=&amp;amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</id><updated>2011-10-18T16:39:41.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>