<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Custom Field Type: Site Reference (part 1)</title>
	<atom:link href="http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP &#124; ISSN 2210-9390</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:22:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: SharePoint 2010: Creaci&#243;n de tipos de campo (I)! &#171; Pasión por la tecnología&#8230;</title>
		<link>http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/comment-page-1/#comment-87014</link>
		<dc:creator>SharePoint 2010: Creaci&#243;n de tipos de campo (I)! &#171; Pasión por la tecnología&#8230;</dc:creator>
		<pubDate>Fri, 29 Jul 2011 19:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/#comment-87014</guid>
		<description>[...] http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/" rel="nofollow">http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Verhaad</title>
		<link>http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/comment-page-1/#comment-44015</link>
		<dc:creator>Verhaad</dc:creator>
		<pubDate>Wed, 03 Mar 2010 09:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/#comment-44015</guid>
		<description>Forgot the adjustments to do in the XML:
URL =&gt;  Must be Capitals!!!</description>
		<content:encoded><![CDATA[<p>Forgot the adjustments to do in the XML:<br />
URL =&gt;  Must be Capitals!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Verhaad</title>
		<link>http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/comment-page-1/#comment-44014</link>
		<dc:creator>Verhaad</dc:creator>
		<pubDate>Wed, 03 Mar 2010 09:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/custom-field-type-site-reference-part-1/#comment-44014</guid>
		<description>Hi Waldek,

as you are using a publishing site, isn&#039;t it easier to add an AssetPicker?

Would be something like this:
//Declaration
private AssetUrlSelector assetUrlSelector;
......

In the CreateChildControls() do the following:

base.CreateChildControls();
this.assetUrlSelector = new AssetUrlSelector();
assetUrlSelector.ButtonType = ButtonType.Image;
assetUrlSelector.PickerButtonImage =&quot;url to image&quot;;
assetUrlSelector.ToolTip = &quot;tooltip&quot;;
assetUrlSelector.DefaultToLastUsedLocation = false;
assetUrlSelector.DefaultOpenLocationUrl = &quot;url to defaultlocation&quot;;
this.Controls.Add(assetUrlSelector);

If you want to link to the selected site do change the following in the XML (and maybe some more adjustments in the code):
URL =&gt; Must be Capitals!!!!!

Greetz, Verhaad</description>
		<content:encoded><![CDATA[<p>Hi Waldek,</p>
<p>as you are using a publishing site, isn&#039;t it easier to add an AssetPicker?</p>
<p>Would be something like this:<br />
//Declaration<br />
private AssetUrlSelector assetUrlSelector;<br />
&#8230;&#8230;</p>
<p>In the CreateChildControls() do the following:</p>
<p>base.CreateChildControls();<br />
this.assetUrlSelector = new AssetUrlSelector();<br />
assetUrlSelector.ButtonType = ButtonType.Image;<br />
assetUrlSelector.PickerButtonImage =&#034;url to image&#034;;<br />
assetUrlSelector.ToolTip = &#034;tooltip&#034;;<br />
assetUrlSelector.DefaultToLastUsedLocation = false;<br />
assetUrlSelector.DefaultOpenLocationUrl = &#034;url to defaultlocation&#034;;<br />
this.Controls.Add(assetUrlSelector);</p>
<p>If you want to link to the selected site do change the following in the XML (and maybe some more adjustments in the code):<br />
URL =&gt; Must be Capitals!!!!!</p>
<p>Greetz, Verhaad</p>
]]></content:encoded>
	</item>
</channel>
</rss>

