<?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>Tomblog &#187; Tricks</title>
	<atom:link href="http://tomblog.insomniacminds.com/tag/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomblog.insomniacminds.com</link>
	<description>Rantings of an Insomniac Mind</description>
	<lastBuildDate>Sun, 31 Jul 2011 17:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SharePoint Tricks: Allow Duplicate Column Names</title>
		<link>http://tomblog.insomniacminds.com/2009/06/29/sharepoint-tricks-allow-duplicate-column-names/</link>
		<comments>http://tomblog.insomniacminds.com/2009/06/29/sharepoint-tricks-allow-duplicate-column-names/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 23:02:20 +0000</pubDate>
		<dc:creator>Tombo</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Columns]]></category>
		<category><![CDATA[Fields]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://tomblog.insomniacminds.com/?p=103</guid>
		<description><![CDATA[One of the restrictions of SharePoint I always stumbled upon when clicking a SharePoint site together was the one of duplicate column names. I bet you&#8217;ve all seen it. You&#8217;re creating some columns (list or site ones) and suddenly SharePoint gives you this error: I finally got pissed at this problem, so I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the restrictions of SharePoint I always stumbled upon when clicking a SharePoint site together was the one of duplicate column names. I bet you&#8217;ve all seen it. You&#8217;re creating some columns (list or site ones) and suddenly SharePoint gives you this error:</p>
<div id="attachment_105" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-105" title="SharePoint Tricks: Duplicate column name error" src="http://tomblog.insomniacminds.com/wp-content/uploads/2009/06/st_dcn_1.png" alt="SharePoint Tricks: jfjfjf" width="500" height="119" /><p class="wp-caption-text">SharePoint Tricks: Duplicate column name error</p></div>
<p>I finally got pissed at this problem, so I decided to investigate. Now, as I developed some columns through the feature framework, I knew it was possible to create columns with the same name, Display Name that is. Just look at Title. How many different &#8220;Title&#8221; columns can you see in the edit view screen? So I decided to take a look in the fldnew.aspx page, and what did I discover? A nice javascript array with all &#8220;forbidden&#8221; column names. I tried to make that array empty and tried again. Magic! The column name was approved. For some reason the team decided to block duplicate names off. But I feel this can be handy some times, especially when creating site columns. You are bound to hit this limitation some time.</p>
<p>But what does SharePoint do internally? It will always make a unique internal name (eg. if you enter Title, it will create a field with Title0 as internal name and Title as display name) A good practice however is to first create a field with a &#8220;good&#8221; internal name. Good meaning, no spaces, no weird characters, clear. And afterwards renaming it using this trick. Now, what is the trick you will ask? Well, quite simply: once the fldnew.aspx or fldedit.aspx page is loaded. Head toward the address bar of your browser and enter following javascript.</p>
<p><code>javascript:g_FieldName={};alert('ok');</code></p>
<p>This code will clear the &#8220;forbidden&#8221; column names array and give you a visual confirmation when you can go on.</p>
<p>I hope this little trick will help some of you guys. Use it with wisedom however. <img src='http://tomblog.insomniacminds.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  &#8217;till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://tomblog.insomniacminds.com/2009/06/29/sharepoint-tricks-allow-duplicate-column-names/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>SharePoint Tricks: Content By Query for Single Web</title>
		<link>http://tomblog.insomniacminds.com/2008/08/05/sharepoint-tricks-content-by-query-for-single-web/</link>
		<comments>http://tomblog.insomniacminds.com/2008/08/05/sharepoint-tricks-content-by-query-for-single-web/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 22:06:11 +0000</pubDate>
		<dc:creator>Tombo</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Content by Query]]></category>
		<category><![CDATA[Recursive]]></category>
		<category><![CDATA[Single]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://tomblog.insomniacminds.com/?p=92</guid>
		<description><![CDATA[Quick little trick tonight for all you SharePoint configurators out there. Ever needed to use the Content by Query Webpart and query for just a single site? Yes? Well, then you probably &#8216;ve noticed there is no such option when configuring the webpart&#8230; right? Wrong! There is a way to enable single site quering, and it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Quick little trick tonight for all you SharePoint configurators out there. Ever needed to use the Content by Query Webpart and query for just a single site? Yes? Well, then you probably &#8216;ve noticed there is no such option when configuring the webpart&#8230; right?</p>
<div id="attachment_94" class="wp-caption alignnone" style="width: 276px"><img class="size-full wp-image-94 " title="Content by Query Source Options" src="http://tomblog.insomniacminds.com/wp-content/uploads/2008/08/st_cbqsw.png" alt="Content by Query Source Options" width="266" height="263" /><p class="wp-caption-text">Content by Query Source Options</p></div>
<p>Wrong! There is a way to enable single site quering, and it&#8217;s actually not that hard. First thing you have to do is export your webpart to a file. Open your .webpart file and add (or replace the old one with) this little property:</p>
<p><code>&lt;property name="WebsOverride" type="string"&gt;&amp;lt;Webs /;&amp;gt;&lt;/property&gt;<br />
</code><br />
This property will, as its name suggests, override the webs property of the sitedataquery. By default the content by query webpart will fill this in with SiteCollection or Recursive. But if you don&#8217;t want this, just overwrite it with this (empty) Webs value.<br />
After adjusting your file, upload it back to your page, and add an instance of your new webpart. And there you have it, single site goodness. <img src='http://tomblog.insomniacminds.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Hope it helps! Good night.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomblog.insomniacminds.com/2008/08/05/sharepoint-tricks-content-by-query-for-single-web/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SharePoint Tricks: Adding Google Search To Search Scopes</title>
		<link>http://tomblog.insomniacminds.com/2008/04/01/sharepoint-tricks-adding-google-search-to-search-scopes/</link>
		<comments>http://tomblog.insomniacminds.com/2008/04/01/sharepoint-tricks-adding-google-search-to-search-scopes/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 23:54:56 +0000</pubDate>
		<dc:creator>Tombo</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://tomblog.insomniacminds.com/?p=75</guid>
		<description><![CDATA[Tonight&#8217;s article is one based on a little trick I pulled of last year at one of my customer&#8217;s Intranet. As it turns out, there seems to be quite some people using Google Search (Live Search anyone?) So how do we add this search scope? The trick lies in a custom page for the search [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight&#8217;s article is one based on a little trick I pulled of last year at one of my customer&#8217;s Intranet. As it turns out, there seems to be quite some people using Google Search (Live Search anyone?) <img src='http://tomblog.insomniacminds.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
So how do we add this search scope? The trick lies in a custom page for the search scope. When creating a search scope in your site collection settings, you&#8217;re allowed to enter a custom search page.</p>
<p> <img src="http://tomblog.insomniacminds.com/wp-content/uploads/2008/04/st_googlesearchscope_1.jpg" alt="SharePoint Tricks: Google Search Scope Configuration" width="517" height="84" /></p>
<p>This custom search page simply has to redirect to the google query webpage: eg.<em>http://www.google.com/search?q=<strong>ENTER+A+WORD</strong></em>. Don&#8217;t forget to replace the ENTER+A+WORD content of the q variable with the k variable you find in the query string of the custom page. This is whare all the magic lies, you see. So in the end, we&#8217;re basicly rerouting the query from SharePoint to Google. Pretty simple, but very effective!</p>
<p> <img src="http://tomblog.insomniacminds.com/wp-content/uploads/2008/04/st_googlesearchscope_2.jpg" alt="SharePoint Tricks: Google Searc Scope Use" width="447" height="54" /></p>
<p>Hope you guys liked the trick. See you next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://tomblog.insomniacminds.com/2008/04/01/sharepoint-tricks-adding-google-search-to-search-scopes/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

