<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Kim Gunnarsson</title><link href="http://world.optimizely.com" /><updated>2016-02-20T23:26:26.0000000Z</updated><id>https://world.optimizely.com/blogs/kim-gunnarsson/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>Episerver Find UnifiedSearchFor with configurable operator</title><link href="http://www.kimgunnarsson.se/unifiedsearchfor-with-configurable-operator/" /><id>&lt;p&gt;When using &lt;strong&gt;UnifiedSearch&lt;/strong&gt; in Episerver Find, I prefer to use the method &lt;code&gt;IClient.UnifiedSearchFor()&lt;/code&gt; because it takes care of necessary logic without exposing implementation details, rendering in lower risk of introducing bugs and unwanted behaviour.&lt;/p&gt;

&lt;p&gt;By default, multiword queries is concatenated using the operator &lt;code&gt;OR&lt;/code&gt;, but in this case we&lt;/p&gt;</id><updated>2016-02-20T23:26:26.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Generic EditorDescriptor for custom SelectionFactories</title><link href="http://www.kimgunnarsson.se/generic-editordescriptor-for-custom-selectionfactories/" /><id>&lt;p&gt;We are extensive users of the feature of implementing custom selection factories by using the &lt;code&gt;EditorDescriptor&lt;/code&gt;-attribute in Episerver. &lt;/p&gt;

&lt;p&gt;The use-case is quite simple and provides the editor with the ability to single select a value within multiple alternatives using a drop down. But as the selection stores grow, the&lt;/p&gt;</id><updated>2015-12-21T08:50:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Make Episerver SelectionEditor support HTML-labels</title><link href="http://www.kimgunnarsson.se/make-selectioneditor-support-html-values/" /><id>&lt;p&gt;Somewhere between the releases of Episerver 7.5 and latest, a small but subtle change in how the &lt;code&gt;epi-cms/contentediting/editors/SelectionEditor&lt;/code&gt; displays labels in associated drop downs was made.&lt;/p&gt;

&lt;p&gt;The line &lt;code&gt;label: item.text&lt;/code&gt; was replaced with &lt;code&gt;label: entities.encode(item.text)&lt;/code&gt; rendering in everything put in a label&lt;/p&gt;</id><updated>2015-12-21T08:00:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>IContentMedia and Required fields is not the best idea</title><link href="http://www.kimgunnarsson.se/mediadata-and-required-fields-is-not-the-best-idea/" /><id>&lt;p&gt;Sometimes when working with &lt;code&gt;MediaData&lt;/code&gt; or other inherited &lt;code&gt;IContentMedia&lt;/code&gt; in EPiServer you need to add extra fields and properties. If you do – &lt;strong&gt;resist the temptation to make them &lt;em&gt;Required&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The standard behaviour when uploading a document it becomes &lt;code&gt;Published&lt;/code&gt; upon upload completion.  When adding properties (fields) with the &lt;code&gt;[Required]&lt;/code&gt; attribute,&lt;/p&gt;</id><updated>2015-09-08T21:10:57.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Working with Categories in EPiServer CMS 8 – a nice &#39;gotcha&#39;!</title><link href="http://www.kimgunnarsson.se/working-with-categories-in-episerver-cms-8-a-quick-heads-up/" /><id>&lt;p&gt;I am currently working with the category functionality in EPiServer and ran into a small hiccup with the new &lt;strong&gt;CategoryRepository&lt;/strong&gt; &lt;a href=&quot;/link/5b6e91ea32d24d9f9e3cd22d149f4c63.aspx&quot;&gt;introduced in EPiServer CMS 8&lt;/a&gt;. Nothing large, just a small heads up if you are working with a site where your editors are using and updating categories. &lt;/p&gt;

&lt;p&gt;A small but&lt;/p&gt;</id><updated>2015-06-23T16:54:41.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Using page properties as dynamic properties</title><link href="http://www.kimgunnarsson.se/using-page-properties-as-dynamic-properties/" /><id>&lt;p&gt;Sometimes in EPiServer you need properties that inherit values.Dynamic Properties is great for that, but as &lt;a href=&quot;/link/2c2f0170f444425e917e31017abf5a3d.aspx&quot;&gt;Anders Hattestad claims (and proposes a solution)&lt;/a&gt;, it&#39;s a bit tricky working with these in EPiServer CMS 7+ versions.&lt;/p&gt;

&lt;p&gt;In a current project, we needed just that; have a variety of inherited property&lt;/p&gt;</id><updated>2014-06-23T16:59:00.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>