<?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>matthewkenny.com &#187; sitecore</title>
	<atom:link href="http://www.matthewkenny.com/tag/sitecore/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matthewkenny.com</link>
	<description></description>
	<lastBuildDate>Sun, 20 Dec 2009 23:10:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Setting Sitecore ImageField</title>
		<link>http://www.matthewkenny.com/2009/12/setting-sitecore-imagefield/</link>
		<comments>http://www.matthewkenny.com/2009/12/setting-sitecore-imagefield/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 23:10:28 +0000</pubDate>
		<dc:creator>Matthew Kenny</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[sitecore]]></category>

		<guid isPermaLink="false">http://www.matthewkenny.com/?p=106</guid>
		<description><![CDATA[Recently I had to write something to allow users to upload their own content on a Sitecore site. Not an unusual, or especially difficult, piece of functionality but one thing that did give me a bit of trouble was associating uploaded images (in the media library with the Sitecore item&#8217;s image field. Originally I tried [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to write something to allow users to upload their own content on a Sitecore site.  Not an unusual, or especially difficult, piece of functionality but one thing that did give me a bit of trouble was associating uploaded images (in the media library with the Sitecore item&#8217;s image field.<span id="more-106"></span></p>
<p>Originally I tried setting the media ID and the media path properties, but that didn&#8217;t quite work.  Eventually I found that you have to set the media ID, media path, source, and a custom attribute (&#8220;<tt>showineditor</tt>&#8220;).  I was surprised that it wasn&#8217;t easier to assign a media file to an <tt>ImageField</tt> object, but that&#8217;s easily resolved using extension methods introduced in .Net 3.5.  For the lazier among us, I&#8217;ve included a small snippet of code that does the important stuff.  This code is written for Sitecore 5.3, but should work on Sitecore 6.x with minor tweaking if some nicer methods haven&#8217;t already been put in place.  Obviously, production code should be made a bit robust than what&#8217;s below, which has no exception handling and <em>assumes the item is already in editing mode</em>.</p>
<pre name="code" class="c-sharp">
public void AssignMediaItem(ImageField field, Item mediaItem)
{
    field.MediaID = mediaItem.ID;
    MediaUrlOptions options = new MediaUrlOptions();
    field.Src = MediaManager.GetMediaUrl(mediaItem, options);
    field.MediaPath = mediaItem.Paths.MediaPath;
    field.SetAttribute("showineditor", "1");
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewkenny.com/2009/12/setting-sitecore-imagefield/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sitecore v6.0</title>
		<link>http://www.matthewkenny.com/2009/06/sitecore-v6-0/</link>
		<comments>http://www.matthewkenny.com/2009/06/sitecore-v6-0/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 17:40:42 +0000</pubDate>
		<dc:creator>Matthew Kenny</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[bit10]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[scd]]></category>
		<category><![CDATA[sitecore]]></category>

		<guid isPermaLink="false">http://www.matthewkenny.com/?p=81</guid>
		<description><![CDATA[Yesterday I took my &#8220;upgrade&#8221; certification exam to upgrade my Sitecore 5.3 certification that I obtained last August to to the recently released version 6.0. Sitecore is a highly adaptable and extremely powerful CMS that bit10 chose as its CMS of choice.  After reviewing a fair number of competing offerings (including Amaxus and Ektron), we [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I took my &#8220;upgrade&#8221; certification exam to upgrade my Sitecore 5.3 certification that I obtained last August to to the recently released version 6.0.  <a title="Sitecore website" href="http://www.sitecore.net" target="_blank">Sitecore</a> is a highly adaptable and extremely powerful CMS that bit10 chose as its CMS of choice.  After reviewing a fair number of competing offerings (including Amaxus and Ektron), we found Sitecore to be a superior offering.<span id="more-81"></span></p>
<p>Version 6 brings some excellent new features to the table; some which have been present in many other CMS products and others which are pretty unique.  I&#8217;m looking forward to working with it in July/August, which is when I&#8217;ve been scheduled to redevelop the <a title="bit10 website" href="http://www.bit10.net/" target="_blank">bit10</a> website (the final designs for which have been described as &#8220;funky but clean&#8221;).  We&#8217;ll see how it goes; expect to hear more on the topic of Sitecore when the project is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewkenny.com/2009/06/sitecore-v6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matt Gets Certified</title>
		<link>http://www.matthewkenny.com/2008/09/matt-gets-certified/</link>
		<comments>http://www.matthewkenny.com/2008/09/matt-gets-certified/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 19:10:27 +0000</pubDate>
		<dc:creator>Matthew Kenny</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[sitecore]]></category>

		<guid isPermaLink="false">http://www.matthewkenny.com/?p=31</guid>
		<description><![CDATA[Being my first &#8220;official&#8221; certification, I figured I&#8217;d give it a mention.  A couple of weeks ago I got sent down to London to do some developer training for a CMS that we&#8217;re going to be using quite a bit at the company I work at.  At some point, there&#8217;s also going to be some [...]]]></description>
			<content:encoded><![CDATA[<p>Being my first &#8220;official&#8221; certification, I figured I&#8217;d give it a mention.  A couple of weeks ago I got sent down to London to do some developer training for a <abbr title="Content Management System">CMS</abbr> that we&#8217;re going to be using quite a bit at the company I work at.  At some point, there&#8217;s also going to be some interesting work porting existing customer sites to the <a title="Sitecore website" href="http://www.sitecore.net" target="_blank">Sitecore</a> platform.<br />
<span id="more-31"></span><br />
In the meantime, there&#8217;s one large Sitecore project which I&#8217;m due to start development on in coming weeks; so I&#8217;m looking forward to doing some actual work with it.</p>
<p>I think I might start looking at some proper accreditations in the near future, as they can only help my career prospects, and I think they&#8217;d really be quite interesting.  The question is whether I&#8217;ll have to cough up the money myself or if it will be covered under CPD&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewkenny.com/2008/09/matt-gets-certified/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

