<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gutters &#8211; blog.boro2g .co.uk</title>
	<atom:link href="https://blog.boro2g.co.uk/tag/gutters/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.boro2g.co.uk</link>
	<description>Some ideas about coding, dev and all things online.</description>
	<lastBuildDate>Thu, 23 Feb 2017 14:53:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
	<item>
		<title>Sitecore Gutters for updated presentation</title>
		<link>https://blog.boro2g.co.uk/sitecore-gutters-for-updated-presentation/</link>
					<comments>https://blog.boro2g.co.uk/sitecore-gutters-for-updated-presentation/#comments</comments>
		
		<dc:creator><![CDATA[boro]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 13:07:17 +0000</pubDate>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[gutters]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[sitecore]]></category>
		<guid isPermaLink="false">http://blog.boro2g.co.uk/?p=77</guid>

					<description><![CDATA[<p>Sitecore gutters are a great way of seeing quick summaries of content within the tree. Some existing gutter options include Locked Items, Workflow State, Missing Versions and more. These can be toggled by right clicking in the left column of the content editor. Its easy to build custom gutters &#8211; in the example above we [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.boro2g.co.uk/sitecore-gutters-for-updated-presentation/">Sitecore Gutters for updated presentation</a> appeared first on <a rel="nofollow" href="https://blog.boro2g.co.uk">blog.boro2g .co.uk</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sitecore gutters are a great way of seeing quick summaries of content within the tree. Some existing gutter options include Locked Items, Workflow State, Missing Versions and more. These can be toggled by right clicking in the left column of the content editor.</p>
<p><a href="http://blog.boro2g.co.uk/wp-content/uploads/2011/06/gutter-options.png"><img decoding="async" class="aligncenter size-full wp-image-78" title="gutter-options" src="http://blog.boro2g.co.uk/wp-content/uploads/2011/06/gutter-options.png" alt="" width="139" height="205" /></a>Its easy to build custom gutters &#8211; in the example above we have a new item available &#8211; &#8216;Custom Presentation&#8217;. When this is active on an item it shows:</p>
<p><a href="http://blog.boro2g.co.uk/wp-content/uploads/2011/06/gutters.jpg"><img decoding="async" class="aligncenter size-full wp-image-79" title="gutters" src="http://blog.boro2g.co.uk/wp-content/uploads/2011/06/gutters.jpg" alt="" width="284" height="64" /></a>Behind the scenes there is very little code to achieve this:</p><pre class="crayon-plain-tag">using System;
using System.Linq;
using ###.DataSource.Cms;
using Sitecore;
using Sitecore.Data.Fields;
using Sitecore.Data.Items;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
using Sitecore.Shell.Applications.ContentEditor.Gutters;

namespace ###.Domain.Cms.Specialization.Shell.Applications.ContentEditor.Gutters
{
    /// &lt;summary&gt;
    /// Shows icon if layout field on item doesnt use presentation value set on __StandardValues
    /// &lt;/summary&gt;
    public class PresentationGutter : GutterRenderer
    {
        protected override GutterIconDescriptor GetIconDescriptor(Item item)
        {
            Assert.ArgumentNotNull(item, &quot;item&quot;);

            Field layoutField = item.Fields[FieldIDs.LayoutField];

            //ItemKeys.Home is a hard coded Guid elswhere in the app
            if (layoutField == null || !item.Axes.GetAncestors().Any(a =&gt; a.ID.Guid == ItemKeys.Home))
            {
                return null;
            }

            if (!String.IsNullOrEmpty(layoutField.Value) &amp;&amp; !layoutField.ContainsStandardValue)
            {
                GutterIconDescriptor descriptor = new GutterIconDescriptor();

                descriptor.Icon = &quot;applications/16x16/document_into.png&quot;;

                descriptor.Tooltip = Translate.Text(&quot;Item doesn't have same presentation as standard values&quot;);

                return descriptor;
            }

            return null;
        }
    }
}</pre><p>Gutters then need to be added to the core database at &#8216;<em>/sitecore/content/Applications/Content Editor/Gutters</em>&#8216;</p>
<p>The post <a rel="nofollow" href="https://blog.boro2g.co.uk/sitecore-gutters-for-updated-presentation/">Sitecore Gutters for updated presentation</a> appeared first on <a rel="nofollow" href="https://blog.boro2g.co.uk">blog.boro2g .co.uk</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.boro2g.co.uk/sitecore-gutters-for-updated-presentation/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
