<?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>Victor Feinman &#187; Sitecore</title>
	<atom:link href="http://www.victorfeinman.com/category/technology/sitecore/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.victorfeinman.com</link>
	<description>I found it on some guy&#039;s site</description>
	<lastBuildDate>Wed, 26 Oct 2011 00:02:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Server Side Redirect to a Sitecore Item</title>
		<link>http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/</link>
		<comments>http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/#comments</comments>
		<pubDate>Fri, 06 May 2011 13:40:00 +0000</pubDate>
		<dc:creator>Some Guy</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[httpRequestBegin]]></category>
		<category><![CDATA[Pipelines]]></category>
		<category><![CDATA[Session State]]></category>

		<guid isPermaLink="false">http://www.victorfeinman.com/?p=165</guid>
		<description><![CDATA[This needs to be in the httpRequestBegin pipeline before the page starts rendering. This Solution assumes that you set the ItemNotFound setting to a Sitecore Item and the RequestErrors.UseServerSideRedirect setting is set to true in the sitecore settings section of the web.config. The problem is that Sitecore assumes that if you set RequestErrors.UseServerSideRedirect to true, you [...]]]></description>
			<content:encoded><![CDATA[<p>This needs to be in the httpRequestBegin pipeline before the page starts rendering. This Solution assumes that you set the ItemNotFound setting to a Sitecore Item and the RequestErrors.UseServerSideRedirect setting is set to true in the sitecore settings section of the web.config. The problem is that Sitecore assumes that if you set RequestErrors.UseServerSideRedirect to true, you are redirect to a physical .aspx page. If you'd like to redirect to a Sitecore Item, here is how.</p>
<p>The problem is in the PerformRedirect method in Sitecore.Pipelines.HttpRequest.ExecuteRequest class. You'll have to create a new class that inherits the ExecuteRequest class and override the PerformRedirect method. Instead of executing HttpContext.Current.Server.Transfer(url) you'll need to add some logic that will make sure the url passed is one to an Item, then you'll have to force the request through the httpRequestBegin pipeline again (actually all you really have to do is run it through the LayoutResolver process, but the only way to do this without ripping out and modifying the LayoutResolver code is to force it through the entire pipeline).</p>
<p>Code example below:</p>
<pre class="brush:csharp">    public class ExecuteRequest : Sitecore.Pipelines.HttpRequest.ExecuteRequest
    {
        protected override void PerformRedirect(string url)
        {
            if (Settings.RequestErrors.UseServerSideRedirect)
            {
                Sitecore.Web.WebUtil.RewriteUrl(url);
                Context.Item = GetItemFromUrl(url);
                if (Context.Item != null)
                {
                    HttpRequestArgs args = new HttpRequestArgs(HttpContext.Current, HttpRequestType.Begin);
                    Sitecore.Pipelines.CorePipeline.Run("httpRequestBegin", (Sitecore.Pipelines.PipelineArgs)args);
                }
            }
            else
            {
                WebUtil.Redirect(url, false);
            }
        }

        ///
        ///     Returns an Item from a URL.
        ///
        ///
<param name="url" />The url of the sitecore item.
        /// The Item the url represents.
        public static Item GetItemFromUrl(string url)
        {
            string referring_item_path = null;
            if (Uri.IsWellFormedUriString(url, UriKind.Relative))
                url = Sitecore.Web.WebUtil.GetFullUrl(url);
            if (Uri.IsWellFormedUriString(url, UriKind.Absolute))
            {
                Uri uri = new Uri(url);
                if (uri.AbsolutePath.StartsWith("/sitecore/"))
                    referring_item_path = uri.AbsolutePath;
                else
                    referring_item_path = Sitecore.Context.Site.StartPath + uri.AbsolutePath;
            }
            //Remove the extension and put a '/' instead.
            referring_item_path = Regex.Replace(referring_item_path, @"(?:\.aspx|\.ashx)", "/");
            //Declare a temp return value variable.
            Item retVal = null;
            using (new Sitecore.SecurityModel.SecurityDisabler())
            {
                //Get the item based off the sitecore path.
                retVal = Sitecore.Context.Database.GetItem(referring_item_path);
            }
            //return the item.
            return retVal;
        }
    }</pre>
<p>This new class needs to replace the current process in the httpRequestBegin pipeline. That can be accomplished by placing a .config file in the /App_Config/Include directory with the following XML.</p>
<pre class="brush:xml">
<configuration xmlns:x="http://www.sitecore.net/xmlconfig/">
  <sitecore>
<pipelines>
      <httprequestbegin>
        <!--
          Replaces the existing execute request to handle the custom 404 page.
        -->
<processor type="Sitecore.Pipelines.HttpRequest.ExecuteRequest, Sitecore.Kernel">
          <x:attribute name="type">your.namespace.ExecuteRequest, yourAssembly</x:attribute>
        </processor>
    </httprequestbegin></pipelines>
  </sitecore>
</configuration>
</pre>
<p>Or if you're ok with modifying the web.config directly replace the type attribute in the below line in your web.config file.<br />
It should look like this:</p>
<p>&lt;processor type="Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel" /&gt;<br />
&lt;processor type="Sitecore.Pipelines.HttpRequest.LayoutResolver, Sitecore.Kernel" /&gt;<br />
<strong>&lt;processor type="your.namespace.ExecuteRequest, yourAssembly" /&gt;</strong></p>
<span class="akst_link"><a href="http://www.victorfeinman.com/?p=165&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_165">Share This</a>
</span><div class='diggWrap'><script type='text/javascript'>
<!--
digg_url='http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
digg_title = 'Server Side Redirect to a Sitecore Item';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
</div>
<div class='share'><span class="akst_link"><a href="http://www.victorfeinman.com/?p=165&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_165">Share This</a>
</span></div>
<br class='clear' />]]></content:encoded>
			<wfw:commentRss>http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Server.Transfer in Sitecore</title>
		<link>http://www.victorfeinman.com/2011/05/server-transfer-in-sitecore/</link>
		<comments>http://www.victorfeinman.com/2011/05/server-transfer-in-sitecore/#comments</comments>
		<pubDate>Fri, 06 May 2011 13:19:49 +0000</pubDate>
		<dc:creator>Some Guy</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[httpRequestBegin]]></category>
		<category><![CDATA[Pipelines]]></category>
		<category><![CDATA[Session State]]></category>

		<guid isPermaLink="false">http://www.victorfeinman.com/?p=150</guid>
		<description><![CDATA[If you are trying to use Server.Transfer or Server.Execute to redirect a request to a Sitecore item you can forget about it. Can't do it, not like that at least. Until I find a way to tap into Sitecores layout rendering engine, I have two solutions for you. One way, which I wouldn't recommend is [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to use Server.Transfer or Server.Execute to redirect a request to a Sitecore item you can forget about it. Can't do it, not like that at least. Until I find a way to tap into Sitecores layout rendering engine, I have two solutions for you. One way, which I wouldn't recommend is to initiate a webrequest and output in the current response, the response of the target page. i.e.</p>
<pre class="brush:csharp smart-tabs:true">string sURL = Sitecore.Web.WebUtil.GetServerUrl(Request.Url, true) + "/404.aspx";
WebRequest wrGETURL;
wrGETURL = WebRequest.Create(sURL);
Stream objStream;
objStream = wrGETURL.GetResponse().GetResponseStream();
StreamReader objReader = new StreamReader(objStream);
string sLine = "";
int i = 0;
while (sLine != null)
{
    i++;
    sLine = objReader.ReadLine();
    if (sLine != null)
        Response.Output.WriteLine(sLine);
}
Context.Response.StatusCode = 404;
Context.Response.Status = "404 not found";
</pre>
<p>The other way to do it is by creating a new layout with all the controls and HTML structure in the layout. Don't rely on Sitecore's dynamic rendering binding and set the Sitecore.Context.Item on page load.</p>
<p>That code looks like this:</p>
<pre class="brush:csharp smart-tabs:true">
Server.Transfer("/layouts/404.aspx", true);
</pre>
<p>The preserveForm bool parameter is optional.<br />
The only problem with this - at least for my instance - is Session state is lost. Hunting for a Solution.</p>
<p>UPDATE*** Before I was even able to publish this post, I've found <a title="Preserve Session State when using Server.Transfer in Sitecore" href="http://www.victorfeinman.com/2011/05/preserve-session-state-when-using-server-transfer-in-sitecore/">a solution to the Session State issue</a> above and found a way to <a title="Server Side Redirect to a Sitecore Item" href="http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/">force a page through sitecore's httpRequestBegin pipeline</a> (actually a little slower than I thought...).</p>
<span class="akst_link"><a href="http://www.victorfeinman.com/?p=150&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_150">Share This</a>
</span><div class='diggWrap'><script type='text/javascript'>
<!--
digg_url='http://www.victorfeinman.com/2011/05/server-transfer-in-sitecore/';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
digg_title = 'Server.Transfer in Sitecore';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
</div>
<div class='share'><span class="akst_link"><a href="http://www.victorfeinman.com/?p=150&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_150">Share This</a>
</span></div>
<br class='clear' />]]></content:encoded>
			<wfw:commentRss>http://www.victorfeinman.com/2011/05/server-transfer-in-sitecore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preserve Session State when using Server.Transfer in Sitecore</title>
		<link>http://www.victorfeinman.com/2011/05/preserve-session-state-when-using-server-transfer-in-sitecore/</link>
		<comments>http://www.victorfeinman.com/2011/05/preserve-session-state-when-using-server-transfer-in-sitecore/#comments</comments>
		<pubDate>Fri, 06 May 2011 13:16:33 +0000</pubDate>
		<dc:creator>Some Guy</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[httpRequestBegin]]></category>
		<category><![CDATA[Pipelines]]></category>
		<category><![CDATA[Session State]]></category>

		<guid isPermaLink="false">http://www.victorfeinman.com/?p=159</guid>
		<description><![CDATA[The title of this post is a little misleading, the solution doesn't use Server.Transfer, it provides an alternate solution involving the Sitecore.Web.WebUtil.RewriteUrl() method which relies on HttpContext.RewritePath() method. This solution may not fit the purpose for everyone or every purpose, but here goes: This - as far as I can tell - needs to be [...]]]></description>
			<content:encoded><![CDATA[<p>The title of this post is a little misleading, the solution doesn't use Server.Transfer, it provides an alternate solution involving the Sitecore.Web.WebUtil.RewriteUrl() method which relies on HttpContext.RewritePath() method.</p>
<p>This solution may not fit the purpose for everyone or every purpose, but here goes:</p>
<p>This - as far as I can tell - needs to be in the httpRequestBegin pipeline before the page starts rendering. For my purpose, I was trying to use the Sitecore setting RequestErrors.UseServerSideRedirect=true so the url of the requested item doesn't change on a 404 error (ItemNotFound). I needed to override the PerformRedirect method in Sitecore.Pipelines.HttpRequest.ExecuteRequest class. To do so I created a new class that would be replacing this one in the httpRequestBegin pipeline. However, you don't need to replace the Sitecore.Pipelines.HttpRequest.ExecuteRequest class, you can create your own process and add it to the end of the httpRequestBegin pipeline.</p>
<pre class="brush:csharp">    public class ExecuteRequest : Sitecore.Pipelines.HttpRequest.ExecuteRequest
    {
        protected override void PerformRedirect(string url)
        {
            if (Settings.RequestErrors.UseServerSideRedirect)
            {
                Sitecore.Web.WebUtil.RewriteUrl(url);
            }
            else
            {
                WebUtil.Redirect(url, false);
            }
        }
    }
</pre>
<p>Note that this will only work if the URL is to an .aspx page and in the page load method set the Sitecore.Context.Item to whichever item you'd like. This solution will not work for Sitecore Items.</p>
<p>If you'd like to server side redirect to a Sitecore Item, please find out how to do that <a title="Server Side Redirect to a Sitecore Item" href="http://www.victorfeinman.com/2011/05/server-side-redirect-to-a-sitecore-item/">here</a>.</p>
<p>Now you have to replace the  in the web.config, you can do it by modifying the web.config directly OR if you're like me and would like to keep the web.config file as close to the release version as possible, then you can add a .config file to the /App_Config/Include folder with something similar to the below XML.</p>
<pre class="brush:xml">          your.namespace.ExecuteRequest, yourAssembly
</pre>
<p>Now the page you previously tried to Server.Transfer to that didn't have state, now has session state!</p>
<span class="akst_link"><a href="http://www.victorfeinman.com/?p=159&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_159">Share This</a>
</span><div class='diggWrap'><script type='text/javascript'>
<!--
digg_url='http://www.victorfeinman.com/2011/05/preserve-session-state-when-using-server-transfer-in-sitecore/';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
digg_title = 'Preserve Session State when using Server.Transfer in Sitecore';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
</div>
<div class='share'><span class="akst_link"><a href="http://www.victorfeinman.com/?p=159&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_159">Share This</a>
</span></div>
<br class='clear' />]]></content:encoded>
			<wfw:commentRss>http://www.victorfeinman.com/2011/05/preserve-session-state-when-using-server-transfer-in-sitecore/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sitecore &#8211; Encoding Special Characters In Fields</title>
		<link>http://www.victorfeinman.com/2010/09/sitecore-encoding-special-characters-in-fields/</link>
		<comments>http://www.victorfeinman.com/2010/09/sitecore-encoding-special-characters-in-fields/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 13:53:19 +0000</pubDate>
		<dc:creator>Some Guy</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Character Replacement]]></category>
		<category><![CDATA[Processor]]></category>

		<guid isPermaLink="false">http://www.victorfeinman.com/?p=126</guid>
		<description><![CDATA[If web standards compliance is one of your top priorities and you have a site core implementation, then you may want to continue reading. Are you tired of seeing &#38; instead of &#38;amp; on your site? Not sure of the best way to encode them? I have created a processor that snaps into the renderField pipeline. [...]]]></description>
			<content:encoded><![CDATA[<p>If web standards compliance is one of your top priorities and you have a site core implementation, then you may want to continue reading. Are you tired of seeing &amp; instead of &amp;amp; on your site? Not sure of the best way to encode them? I have created a processor that snaps into the renderField pipeline. The only caveat is that in order for this code to run you need to use the FieldRenderer.Render(Item, FieldName) method. Which, in my opinion, you should always be using anyway.</p>
<p><span id="more-126"></span></p>
<p>You need to create a new class with a Process method like so:</p>
<pre class="brush:csharp">using System.Text.RegularExpressions;
using Sitecore.Pipelines.RenderField;

namespace your.namespace.here
{
    public class special_character_replacer
    {
        // Methods
        public void Process(RenderFieldArgs args)
        {
            args.Result.FirstPart = Regex.Replace(args.Result.FirstPart, @"&amp;amp;(?!.{2,5};)(?!\w*=)", "&amp;amp;");
            //More special character replacements can go here.
        }
    }
}
</pre>
<p>*** notice the first &amp;amp;. This is necessary as it's in the web.config and needs to be encoded, but will search for "&amp;". Also, keep in mind that the Ampersand may already be encoded, don't replace them, and don't replace any ampersands in URLs.</p>
<p>Then you need to add the processor you just created to the renderField pipeline like so: </p>
<pre class="brush:csharp">
<renderfield>
<processor type="Sitecore.Pipelines.RenderField.SetParameters, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.ExpandLinks, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetImageFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetLinkFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetInternalLinkFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetMemoFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetDateFieldValue, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.GetDocxFieldValue, Sitecore.Kernel"/>
<processor type="your.namespace.here.special_character_replacer, airproducts"/>
<processor type="Sitecore.Pipelines.RenderField.AddBeforeAndAfterValues, Sitecore.Kernel"/>
<processor type="Sitecore.Pipelines.RenderField.RenderWebEditing, Sitecore.Kernel"/>
</renderfield>
</pre>
<p>That's it. Now just sit back and watch the encoding begin.</p>
<span class="akst_link"><a href="http://www.victorfeinman.com/?p=126&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_126">Share This</a>
</span><div class='diggWrap'><script type='text/javascript'>
<!--
digg_url='http://www.victorfeinman.com/2010/09/sitecore-encoding-special-characters-in-fields/';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
digg_title = 'Sitecore - Encoding Special Characters In Fields';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
</div>
<div class='share'><span class="akst_link"><a href="http://www.victorfeinman.com/?p=126&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_126">Share This</a>
</span></div>
<br class='clear' />]]></content:encoded>
			<wfw:commentRss>http://www.victorfeinman.com/2010/09/sitecore-encoding-special-characters-in-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitecore &#8211; FieldRenderer.Render(item, fieldname) returning &#8220;&#8221; empty string</title>
		<link>http://www.victorfeinman.com/2010/08/sitecore-fieldrenderer-renderitem-fieldname-returning-empty-string/</link>
		<comments>http://www.victorfeinman.com/2010/08/sitecore-fieldrenderer-renderitem-fieldname-returning-empty-string/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 14:58:11 +0000</pubDate>
		<dc:creator>Some Guy</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.victorfeinman.com/?p=124</guid>
		<description><![CDATA[Today I spent 2 hours trying to debug why FieldRenderer.Render() was returning an empty string. It was working yesterday and the code didn't change, so what was it? Digging a little deeper I found this in the immediate window of VS2008. FieldRenderer.Render(item, constants.content.title.ToString()) "" item[constants.content.title] "Frequently Asked Questions (FAQs)" item.Fields[constants.content.title] ""-{D5A4F329-B904-4D6D-8503-392BD87B18A6} CanRead: true CanWrite: true [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spent 2 hours trying to debug why FieldRenderer.Render() was returning an empty string.</p>
<p>It was working yesterday and the code didn't change, so what was it?</p>
<p><span id="more-124"></span></p>
<p>Digging a little deeper I found this in the immediate window of VS2008.</p>
<div id="_mcePaste">FieldRenderer.Render(item, constants.content.title.ToString())</div>
<div id="_mcePaste">""</div>
<div></div>
<div id="_mcePaste">item[constants.content.title]</div>
<div id="_mcePaste">"Frequently Asked Questions (FAQs)"</div>
<div></div>
<div id="_mcePaste">item.Fields[constants.content.title]</div>
<div id="_mcePaste">""-{D5A4F329-B904-4D6D-8503-392BD87B18A6}</div>
<div id="_mcePaste">CanRead: true</div>
<div id="_mcePaste">CanWrite: true</div>
<div id="_mcePaste">ContainsStandardValue: false</div>
<div id="_mcePaste">Database: {web}</div>
<div id="_mcePaste">Definition: null</div>
<div id="_mcePaste">Description: ""</div>
<div id="_mcePaste">DisplayName: ""</div>
<div id="_mcePaste">HasBlobStream: false</div>
<div id="_mcePaste">HasValue: true</div>
<div id="_mcePaste">HelpLink: ""</div>
<div id="_mcePaste">ID: {D5A4F329-B904-4D6D-8503-392BD87B18A6}</div>
<div id="_mcePaste">InheritedValue: "Frequently Asked Questions (FAQs)"</div>
<div id="_mcePaste">IsBlobField: false</div>
<div id="_mcePaste">IsModified: false</div>
<div id="_mcePaste">"faqs": faqs (en#1@web), id: {B4B6124D-D94B-436D-A3B7-29FD8BE4ADA0}</div>
<div id="_mcePaste">Key: ""</div>
<div id="_mcePaste">"en": "en"</div>
<div id="_mcePaste">Name: ""</div>
<div id="_mcePaste">ResetBlank: false</div>
<div id="_mcePaste">Section: ""</div>
<div id="_mcePaste">SectionSortorder: 0</div>
<div id="_mcePaste">Shared: false</div>
<div id="_mcePaste">ShouldBeTranslated: false</div>
<div id="_mcePaste">Sortorder: 0</div>
<div id="_mcePaste">Source: ""</div>
<div id="_mcePaste">Style: ""</div>
<div id="_mcePaste">Title: ""</div>
<div id="_mcePaste">ToolTip: ""</div>
<div id="_mcePaste">Translatable: false</div>
<div id="_mcePaste">Type: ""</div>
<div id="_mcePaste">TypeKey: ""</div>
<div id="_mcePaste">Unversioned: false</div>
<div id="_mcePaste">Validation: ""</div>
<div id="_mcePaste">ValidationText: ""</div>
<div id="_mcePaste">Value: "Frequently Asked Questions (FAQs)"</div>
<div></div>
<div>So obviously there is a value in there, so why is it returning empty string?</div>
<div></div>
<div>As it turns out, the template that had the referenced field was removed as an inherited template for that item. I'm not sure how - or who did it but it was removed. Simply adding the template to the inherited template restored my page to how it should have been.</div>
<span class="akst_link"><a href="http://www.victorfeinman.com/?p=124&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_124">Share This</a>
</span><div class='diggWrap'><script type='text/javascript'>
<!--
digg_url='http://www.victorfeinman.com/2010/08/sitecore-fieldrenderer-renderitem-fieldname-returning-empty-string/';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
digg_title = 'Sitecore - FieldRenderer.Render(item, fieldname) returning &quot;&quot; empty string';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
</div>
<div class='share'><span class="akst_link"><a href="http://www.victorfeinman.com/?p=124&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_124">Share This</a>
</span></div>
<br class='clear' />]]></content:encoded>
			<wfw:commentRss>http://www.victorfeinman.com/2010/08/sitecore-fieldrenderer-renderitem-fieldname-returning-empty-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

