<?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</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:43:19 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
