<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by Alf Nilsson</title> <link>https://world.optimizely.com/blogs/Alf-Nilsson/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>Support for Block as Property in the Episerver Content Delivery API</title>            <link>http://talk.alfnilsson.se/?p=3047</link>            <description>Since Episerver 7, CMS has support to add Blocks as Properties. This helps you to group Properties easier as well as reusing code. Unfortunately the Episerver Content Delivery API does not support these blocks. They are simply not serialized into the JSON response. In my example I will use the StartPage from the Alloy Templates [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3047</guid>            <pubDate>Mon, 27 May 2019 08:00:54 GMT</pubDate>           <category>Blog post</category></item><item> <title>Support for Block as Property in the Episerver Content Delivery API</title>            <link>http://talk.alfnilsson.se/?p=3047</link>            <description>Since Episerver 7, CMS has support to add Blocks as Properties. This helps you to group Properties easier as well as reusing code. Unfortunately the Episerver Content Delivery API does not support these blocks. They are simply not serialized into the JSON response. In my example I will use the StartPage from the Alloy Templates [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3047</guid>            <pubDate>Mon, 27 May 2019 06:00:54 GMT</pubDate>           <category>Blog post</category></item><item> <title>Prevent Episerver ContentDelivery to hijack all application/json requests</title>            <link>http://talk.alfnilsson.se/?p=3038</link>            <description>In one of my projects where we are using the Content Delivery API from Episerver, we also have some custom logic in the templates for some Ajax posting. A JavaScript makes a POST request to the current url and expects a json response, therefore the request has an Accept Header with the value: application/json. Issue [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3038</guid>            <pubDate>Tue, 26 Feb 2019 09:31:29 GMT</pubDate>           <category>Blog post</category></item><item> <title>Getting a previewable property value with UIHint.PreviewableText</title>            <link>http://talk.alfnilsson.se/?p=3032</link>            <description>You might have seen that the field &amp;#8220;Name in URL&amp;#8221; first gives you the value and the editor needs to click &amp;#8220;change&amp;#8221; to edit it. You can also accomplish this on your normal string properties by using the UI Hint &amp;#8220;previewabletext&amp;#8221; (also found as the constant UIHint.PreviewableText). [Display(Name = &quot;My Property&quot;)] [UIHint(UIHint.PreviewableText)] public virtual string [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3032</guid>            <pubDate>Mon, 01 Oct 2018 16:34:24 GMT</pubDate>           <category>Blog post</category></item><item> <title>Adding ImageVault buttons to TinyMCE 2 in Episerver</title>            <link>http://talk.alfnilsson.se/?p=3028</link>            <description>With the new TinyMCE version in Episerver 11, there are some new changes on how to set up your toolbars. Episerver has documented it quite well and how you set it up in the back end is quite similar to how you would set it up using TinyMCE&amp;#8217;s JavaScript API. But it took a while [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3028</guid>            <pubDate>Wed, 25 Jul 2018 13:09:30 GMT</pubDate>           <category>Blog post</category></item><item> <title>Tweaking and extending serialization from Episerver Content Delivery API</title>            <link>http://talk.alfnilsson.se/?p=3016</link>            <description>As you&amp;#8217;ve probably heard, Episerver is creating a Headless CMS API called &amp;#8220;Content Delivery API&amp;#8220;. With this, you can get, list and search (requires Episerver Find) content from Episerver in a JSON format. Matthew Mols has some blog posts about how to get started:&#160;Getting started with the Episerver Content Delivery API and&#160;Add HTTP Caching to [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3016</guid>            <pubDate>Tue, 24 Apr 2018 23:51:55 GMT</pubDate>           <category>Blog post</category></item><item> <title>Differences between DeletingContent/DeletedContent between emptying trash and deleting content</title>            <link>http://talk.alfnilsson.se/?p=3008</link>            <description>We stumbled upon an area where the DeletingContent and DeletedContent events slightly differently when you&amp;#8217;re deleting content through the IContentRepository, manually emptying the trash and the scheduled job &amp;#8220;Automatic Emptying of Trash&amp;#8221;. Let&amp;#8217;s look at what the DeletingContent and DeletedContent events are. There are multiple articles and blog posts that mention this but simply these [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=3008</guid>            <pubDate>Wed, 21 Mar 2018 13:48:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Automatic visual tests with Episerver: Prepare your conditions with Content Providers</title>            <link>http://talk.alfnilsson.se/?p=2986</link>            <description>In my previous post I talked about how to set up automatic visual tests &amp;#8211; and for a time, it was good. Then editors and other team members starts changing the content and your tests starts showing deviations based on content changes rather than code changes. Yes, you can set up rules on not changing [&amp;#8230;]</description>            <guid>http://talk.alfnilsson.se/?p=2986</guid>            <pubDate>Mon, 12 Mar 2018 16:50:11 GMT</pubDate>           <category>Blog post</category></item><item> <title>Workaround that ImageVault.EPiServer.UI 5.5.36 does not support non-standard ports</title>            <link>http://talk.alfnilsson.se/?p=2981</link>            <description>We have upgraded the NuGet package ImageVault.EPiServer.UI to 5.5.36. This package is used to install ImageVault properties and editor UI into Episerver. However I noticed that I was unable to add images to the ImageReference properties in Episerver. The &amp;#8220;Insert&amp;#8221; button was replaced with &amp;#8220;Publish&amp;#8221;. Looking into the javascript errors I found the following: imagevault-insert-media.min.js:1 [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=2981&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=2981</guid>            <pubDate>Thu, 07 Dec 2017 23:11:56 GMT</pubDate>           <category>Blog post</category></item><item> <title>Automatic visual tests with Episerver: Test after a Deploy</title>            <link>http://talk.alfnilsson.se/?p=2971</link>            <description>A common reason I have heard that Episerver developers don&amp;#8217;t write automatic tests are that they&amp;#8217;re &amp;#8220;only doing content websites&amp;#8221;. First of all I suggest that you have an &amp;#8220;API first&amp;#8221; approach, even if you&amp;#8217;re only going to make content based functionality such as listing and filtering News Entries. This falls well into the classic [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=2971&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=2971</guid>            <pubDate>Sun, 03 Dec 2017 23:01:33 GMT</pubDate>           <category>Blog post</category></item><item> <title>Simple pattern for custom forms</title>            <link>http://talk.alfnilsson.se/?p=2516</link>            <description>Through the years I can&amp;#8217;t really keep count on how many custom forms I have created. I have found a simple pattern so that I can easily collect, validate and save the submitted information using a Model, Validator and Saver (MVS?). Dos and don&amp;#8217;ts I want to show you some practices I consider as Don&amp;#8217;t&#160;and [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=2516&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=2516</guid>            <pubDate>Mon, 10 Jul 2017 11:28:51 GMT</pubDate>           <category>Blog post</category></item><item> <title>Presenting: Find My Content</title>            <link>http://talk.alfnilsson.se/?p=2143</link>            <description>My main project is a multi website solution where 16 different websites is sharing the same source code. Sometimes when we need to change specific Content Type and find a strategy on how to migrate the changes it&amp;#8217;s good to know how much that Content Type is used, and in what way. How do you [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=2143&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=2143</guid>            <pubDate>Sun, 12 Feb 2017 18:06:28 GMT</pubDate>           <category>Blog post</category></item><item> <title>Episerver Event Helper v3.0</title>            <link>http://talk.alfnilsson.se/?p=1885</link>            <description>Years pass and hopefully you learn something and become better! One thing that have been poking on my conscience for a while is the old EPiEventHelper that I blogged about&#160;a couple of years ago. What&amp;#8217;s wrong with it? There are two things I don&amp;#8217;t like with it. 1) Unclear usage I have seen that it [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1885&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1885</guid>            <pubDate>Wed, 11 Jan 2017 22:35:18 GMT</pubDate>           <category>Blog post</category></item><item> <title>Removing all translations – Part I (understanding the Episerver Database)</title>            <link>http://talk.alfnilsson.se/?p=1870</link>            <description>Me and some colleagues had a project where we needed to remove all translations from an Episerver website except one. For that we needed to know what&#160;the database structure looks like in Episerver and I will share this to all of you! Now I&amp;#8217;m trying out something new &amp;#8211;&#160;a&#160;video post! I know it&amp;#8217;s not the [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1870&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1870</guid>            <pubDate>Wed, 06 Jul 2016 16:20:06 GMT</pubDate>           <category>Blog post</category></item><item> <title>Planning your Episerver project</title>            <link>http://talk.alfnilsson.se/?p=1447</link>            <description>You&amp;#8217;re going to start working on&#160;a brand new Episerver project! Your solution is a brand new slate where you can add your best code ever and you just received the design specs and requirements! Now you need to sit down and get an idea how to build your solution. But where should you start? In [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1447&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1447</guid>            <pubDate>Fri, 17 Jun 2016 16:33:44 GMT</pubDate>           <category>Blog post</category></item><item> <title>How to NOT use properties on Content Types</title>            <link>http://talk.alfnilsson.se/?p=1360</link>            <description>I&amp;#8217;ve seen more and more examples on how to NOT use properties on your Content Types &amp;#8211; setting visit/Request specific information to them. My example below is a very harmless, but I&amp;#8217;ve seen examples where the price for an e-com site is set like this! How do you mean? The example would be to display [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1360&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1360</guid>            <pubDate>Tue, 17 May 2016 14:08:20 GMT</pubDate>           <category>Blog post</category></item><item> <title>Where to integrate with Episerver Forms</title>            <link>http://talk.alfnilsson.se/?p=1197</link>            <description>If you want to control what&amp;#8217;s going on when a form created with Episerver Forms is submited, there are&#160;different areas you can implement your logic. The most usable ones (or the ones most people would go for) would be Controllers where the submitted form is posted, the implementation of DataSubmissionService,&#160;various Events and through Actors. So [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1197&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1197</guid>            <pubDate>Sat, 07 May 2016 16:47:36 GMT</pubDate>           <category>Blog post</category></item><item> <title>Episerver Forms: How to change where uploaded files are stored</title>            <link>http://talk.alfnilsson.se/?p=1323</link>            <description>During my session about Episerver Forms&#160;at the&#160;&#216;resund Episerver Developer meetup&#160;I received a question about how to change where uploaded files are stored A quick look at how Episerver Forms manage the posted information I found that it is the&#160;DataSubmissionService that creates an Asset Folder and stores the file. By replacing the original DataSubmissionService with a [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1323&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1323</guid>            <pubDate>Fri, 06 May 2016 23:57:03 GMT</pubDate>           <category>Blog post</category></item><item> <title>Change access rights for Episerver Find UI</title>            <link>http://talk.alfnilsson.se/?p=1070</link>            <description>As you probably know, Episerver Find has a UI where the editors can see statistics on how their visitors use the search functionality, fine-tune&#160;their search results by adding best-bets, related queries,&#160;synonyms and boost results as well as get an overview what kind of information is indexed in the Find Index. To see the menu items [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=1070&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=1070</guid>            <pubDate>Thu, 05 May 2016 19:59:03 GMT</pubDate>           <category>Blog post</category></item><item> <title>Customize “Suggested Page/Block types” when creating content</title>            <link>http://talk.alfnilsson.se/?p=961</link>            <description>I&amp;#8217;ve found a neat way to improve the editor experience &amp;#8211; IContentTypeAdvisor and it can be found in the EPiServer.Cms.Shell.UI.Rest namespace of the assembly EPiServer.Cms.Shell.UI.dll. This interface is used to populate the list of suggested Content Types when creating new content. This interface has one method GetSuggestions which returns an collection of ids of block [&amp;#8230;]&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://pixel.wp.com/b.gif?host=talk.alfnilsson.se&amp;#038;blog=18285343&amp;#038;post=961&amp;#038;subd=toders&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</description>            <guid>http://talk.alfnilsson.se/?p=961</guid>            <pubDate>Sun, 17 Apr 2016 19:32:31 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>