<?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>My Insights</title>
	<atom:link href="http://www.pranavsharma.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pranavsharma.com/blog</link>
	<description>A fresh perspective on the world of technology</description>
	<lastBuildDate>Wed, 01 Sep 2010 02:39:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to leverage SharePoint 2010 dialogs?</title>
		<link>http://www.pranavsharma.com/blog/2010/08/31/how-to-leverage-sharepoint-2010-dialogs/</link>
		<comments>http://www.pranavsharma.com/blog/2010/08/31/how-to-leverage-sharepoint-2010-dialogs/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 02:39:53 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2010 (SPS / Foundation)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/08/31/how-to-leverage-sharepoint-2010-dialogs/</guid>
		<description><![CDATA[SharePoint 2010 has a robust modal dialog system that can be easily leveraged to build highly interactive solutions. Imaging being able to&#160; pop-up item edit forms or displaying notifications all without redirecting the user back and forth! Here is the client side JavaScript that will allow you to open any page within a dialog box- [...]]]></description>
			<content:encoded><![CDATA[<p>SharePoint 2010 has a robust modal dialog system that can be easily leveraged to build highly interactive solutions. Imaging being able to&#160; pop-up item edit forms or displaying notifications all without redirecting the user back and forth!</p>
<p>Here is the client side JavaScript that will allow you to open any page within a dialog box-</p>
<blockquote><pre class="csharpcode"><span class="rem">//Handle the DialogCallback callback</span>
<span class="kwrd">function</span> DialogCallback(dialogResult, returnValue){
    window.location = window.location;
}

<span class="rem">//Open the Dialog</span>
<span class="kwrd">function</span> OpenEditDialog(link){
    <span class="kwrd">var</span> options = {
        url:link + <span class="str">'&amp;IsDlg=1'</span>,
        width: 700,
        height: 700,
        dialogReturnValueCallback: DialogCallback};
    SP.UI.ModalDialog.showModalDialog(options);
}</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</blockquote>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>To invoke the dialog, simply call the OpenEditDialog function with the target URL.</p>
<p>Notice that the IsDlg=1 query string parameter is appended within the OpenEditDialog function. The presence of “IsDlg” dynamically loads the &quot;/_layouts/styles/dlgframe.css” file which applies “display:none” to all items using the “s4-notdlg” css class. This effectively hides items of this class in a dialog box. For example, v4.master uses the “s4-notdlg” class for the Ribbon control to hide the ribbon within dialogs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/08/31/how-to-leverage-sharepoint-2010-dialogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inherit Site Theme programmatically</title>
		<link>http://www.pranavsharma.com/blog/2010/07/20/inherit-site-theme-programmatically/</link>
		<comments>http://www.pranavsharma.com/blog/2010/07/20/inherit-site-theme-programmatically/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 01:36:29 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2010 (SPS / Foundation)]]></category>
		<category><![CDATA[Object Model]]></category>
		<category><![CDATA[Programatically]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Site Theme]]></category>
		<category><![CDATA[SP2010]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/07/20/inherit-site-theme-programmatically/</guid>
		<description><![CDATA[The Microsoft.SharePoint.Utilities namespace contains a class called ThmxTheme which gives us some nice utility methods to interact with site themes in SharePoint 2010. Here is an example of how to automatically set the theme for a newly created SPWeb to be the same as the root web- ThmxTheme.SetThemeUrlForWeb(newWeb, ThmxTheme.GetThemeUrlForWeb(newWeb.Site.RootWeb)); Do you know of a nicer [...]]]></description>
			<content:encoded><![CDATA[<p>The Microsoft.SharePoint.Utilities namespace contains a class called ThmxTheme which gives us some nice utility methods to interact with site themes in SharePoint 2010. Here is an example of how to automatically set the theme for a newly created SPWeb to be the same as the root web-</p>
<blockquote><pre class="code"><span style="color: #2b91af">ThmxTheme</span>.SetThemeUrlForWeb(newWeb, <span style="color: #2b91af">ThmxTheme</span>.GetThemeUrlForWeb(newWeb.Site.RootWeb));</pre>
</blockquote>
<p>Do you know of a nicer way to inherit site themes? Please post a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/07/20/inherit-site-theme-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot modify Title field in Content Type declaration</title>
		<link>http://www.pranavsharma.com/blog/2010/07/12/cannot-modify-title-field-in-content-type-declaration/</link>
		<comments>http://www.pranavsharma.com/blog/2010/07/12/cannot-modify-title-field-in-content-type-declaration/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:03:59 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2010 (SPS / Foundation)]]></category>
		<category><![CDATA[Content Type]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/07/12/cannot-modify-title-field-in-content-type-declaration/</guid>
		<description><![CDATA[Problem Unable to make changes to the title field when declaring a content type in SharePoint 2010. For example, the following declaration has NO EFFECT on the title field being required- &#60;ContentType ID=&#34;0x010092E61E2438E84353B7211741448DE18A&#34; Name=&#34;Example&#34; Inherits=&#34;TRUE&#34; Version=&#34;0&#34;&#62; &#60;FieldRefs&#62; &#60;RemoveFieldRef ID=&#34;{fa564e0f-0c70-4ab9-b863-0177e6ddd247}&#34; Name=&#34;Title&#34; /&#62; &#60;FieldRef ID=&#34;{fa564e0f-0c70-4ab9-b863-0177e6ddd247}&#34; Name=&#34;Title&#34; Required=&#34;FALSE&#34; /&#62; .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem     <br /></strong>Unable to make changes to the title field when declaring a content type in SharePoint 2010. For example, the following declaration has NO EFFECT on the title field being required-</p>
<blockquote><pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">ContentType</span> <span class="attr">ID</span><span class="kwrd">=&quot;0x010092E61E2438E84353B7211741448DE18A&quot;</span>
             <span class="attr">Name</span><span class="kwrd">=&quot;Example&quot;</span>
             <span class="attr">Inherits</span><span class="kwrd">=&quot;TRUE&quot;</span>
             <span class="attr">Version</span><span class="kwrd">=&quot;0&quot;</span><span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;</span><span class="html">FieldRefs</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">RemoveFieldRef</span> <span class="attr">ID</span><span class="kwrd">=&quot;{fa564e0f-0c70-4ab9-b863-0177e6ddd247}&quot;</span> <span class="attr">Name</span><span class="kwrd">=&quot;Title&quot;</span> <span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">FieldRef</span> <span class="attr">ID</span><span class="kwrd">=&quot;{fa564e0f-0c70-4ab9-b863-0177e6ddd247}&quot;</span> <span class="attr">Name</span><span class="kwrd">=&quot;Title&quot;</span> <span class="attr">Required</span><span class="kwrd">=&quot;FALSE&quot;</span> <span class="kwrd">/&gt;</span></pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</blockquote>
<p><strong>Workaround<br />
    <br /></strong>Attach a feature receiver to your content type and use the object model to modify the Title field-</p>
<blockquote>
<pre class="csharpcode"><span style="color: #2b91af">SPContentType </span>contentType =
     site.RootWeb.ContentTypes[
             <span class="kwrd">new</span> <span style="color: #2b91af">SPContentTypeId</span>(contentTypeId)];
<span style="color: #2b91af">SPFieldLink </span>title = contentType.FieldLinks[<span style="color: #a31515">&quot;Title&quot;</span>];
title.Required = <span class="kwrd">false</span>;
contentType.Update(<span class="kwrd">true</span>);</pre>
</blockquote>
<p><strong>Discussion<br />
    <br /></strong>This is a ‘cheap’ solution so to speak because modifying the content type via the object model disconnects it from the XML definition thus making future updates messier (<a href="http://soerennielsen.wordpress.com/2007/09/11/propagate-site-content-types-to-list-content-types/" target="_blank">Read More</a>).</p>
<p>I’m a strong advocate of doing things declaratively and this solution clearly violates that rule. <a href="http://blog.xsolon.net/" target="_blank">A colleague of mine</a> made a case for writing content types completely non-declaratively using the object model.</p>
<p><strong><em>What best practices do you follow when writing content types?</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/07/12/cannot-modify-title-field-in-content-type-declaration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error occurred in deployment step &#8216;Activate Features&#8217;</title>
		<link>http://www.pranavsharma.com/blog/2010/05/26/error-occurred-in-deployment-step-activate-features/</link>
		<comments>http://www.pranavsharma.com/blog/2010/05/26/error-occurred-in-deployment-step-activate-features/#comments</comments>
		<pubDate>Wed, 26 May 2010 21:17:09 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2010 (SPS / Foundation)]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Activate]]></category>
		<category><![CDATA[Deploy]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[Retract]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/05/26/error-occurred-in-deployment-step-activate-features/</guid>
		<description><![CDATA[Problem An error related to feature activation is generated when deploying a sharepoint wsp package using visual studio 2010’s default deployment configuration - Error occurred in deployment step &#8216;Activate Features&#8217; Workaround 1 Use the “No Activation” deployment configuration and use Post-deployment command-line operations to manually activate your features since the retraction process will deactivate your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>    <br />An error related to feature activation is generated when deploying a sharepoint wsp package using visual studio 2010’s default deployment configuration -</p>
<p><em>Error occurred in deployment step &#8216;Activate Features&#8217;</em></p>
<p><strong>Workaround 1</strong>    <br />Use the “No Activation” deployment configuration and use Post-deployment command-line operations to manually activate your features since the retraction process will deactivate your features regardless.</p>
<p><strong>Workaround 2</strong>    <br />Deploy using default configuration until you see error message. Then manually Enable/Disable problem features and then RE-DEPLOY using default configuration-    <br />1) Enable-SPFeature -identity &quot;FeatureTitle&quot; -Url http://localhost    <br />2) Disable-SPFeature -identity &quot;FeatureTitle&quot; -Url http://localhost</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/05/26/error-occurred-in-deployment-step-activate-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>STP uploaded by feature doesn&#8217;t appear on create page</title>
		<link>http://www.pranavsharma.com/blog/2010/05/06/stp-uploaded-by-feature-doesnt-appear-on-create-page/</link>
		<comments>http://www.pranavsharma.com/blog/2010/05/06/stp-uploaded-by-feature-doesnt-appear-on-create-page/#comments</comments>
		<pubDate>Thu, 06 May 2010 19:50:01 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2007 ( MOSS / WSS )]]></category>
		<category><![CDATA[Create.aspx]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[List Template Gallery]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[Property]]></category>
		<category><![CDATA[STP]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/05/06/stp-uploaded-by-feature-doesnt-appear-on-create-page/</guid>
		<description><![CDATA[Problem STP list templates uploaded using a feature are not available to instantiate on create.aspx Solution When you upload a list template (STP) using a feature to the list template gallery ( _catalogs/lt ), you must set some attributes in order for the template to show up on the create.aspx page- &#60;Elements xmlns=&#34;http://schemas.microsoft.com/sharepoint/&#34;&#62; &#60;Module Url=&#34;_catalogs/lt&#34; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem     <br /></strong>STP list templates uploaded using a feature are not available to instantiate on create.aspx</p>
<p><strong>Solution</strong>    <br />When you upload a list template (STP) using a feature to the list template gallery ( _catalogs/lt ), you must set some attributes in order for the template to show up on the create.aspx page-</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">Elements</span> <span class="attr">xmlns</span><span class="kwrd">=&quot;http://schemas.microsoft.com/sharepoint/&quot;</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">Module</span> <span class="attr">Url</span><span class="kwrd">=&quot;_catalogs/lt&quot;</span> <span class="attr">Name</span><span class="kwrd">=&quot;PS.AACP.Stp&quot;</span> <span class="attr">Path</span><span class="kwrd">=&quot;&quot;</span><span class="kwrd">&gt;</span>
        <span class="kwrd">&lt;</span><span class="html">File</span> <span class="attr">Url</span><span class="kwrd">=&quot;StpTest.stp&quot;</span> <span class="attr">Type</span><span class="kwrd">=&quot;GhostableInLibrary&quot;</span> <span class="attr">IgnoreIfAlreadyExists</span><span class="kwrd">=&quot;TRUE&quot;</span><span class="kwrd">&gt;</span>
           <span class="kwrd">&lt;</span><span class="html">Property</span> <span class="attr">Name</span><span class="kwrd">=&quot;Title&quot;</span> <span class="attr">Value</span><span class="kwrd">=&quot;StpTest&quot;</span> <span class="kwrd">/&gt;</span>
           <span class="kwrd">&lt;</span><span class="html">Property</span> <span class="attr">Name</span><span class="kwrd">=&quot;Language&quot;</span> <span class="attr">Value</span><span class="kwrd">=&quot;1033&quot;</span> <span class="kwrd">/&gt;</span>
           <span class="kwrd">&lt;</span><span class="html">Property</span> <span class="attr">Name</span><span class="kwrd">=&quot;FeatureID&quot;</span> <span class="attr">Value</span><span class="kwrd">=&quot;{D90095AD-86D4-4e55-AE28-119E21530552}&quot;</span> <span class="kwrd">/&gt;</span>
        <span class="kwrd">&lt;/</span><span class="html">File</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">Module</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">Elements</span><span class="kwrd">&gt;</span></pre>
<p>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/05/06/stp-uploaded-by-feature-doesnt-appear-on-create-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 Site Themes are not exact</title>
		<link>http://www.pranavsharma.com/blog/2010/05/03/sharepoint-2010-site-themes-are-not-exact/</link>
		<comments>http://www.pranavsharma.com/blog/2010/05/03/sharepoint-2010-site-themes-are-not-exact/#comments</comments>
		<pubDate>Mon, 03 May 2010 20:08:21 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2010 (SPS / Foundation)]]></category>
		<category><![CDATA[Office Theme]]></category>
		<category><![CDATA[s4-toplinks]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Site Theme]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/05/03/sharepoint-2010-site-themes-are-not-exact/</guid>
		<description><![CDATA[SharePoint 2010 doesn’t directly apply a site theme but instead generates its own colors based upon the theme. Let me explain by example- The default top navigation bar in SharePoint 2010 uses ‘Accent 1’ from the site theme to determine the background color for each one of the navigation items. However, SharePoint doesn’t directly use [...]]]></description>
			<content:encoded><![CDATA[<p>SharePoint 2010 doesn’t directly apply a site theme but instead generates its own colors based upon the theme. Let me explain by example-</p>
<p>The default top navigation bar in SharePoint 2010 uses ‘Accent 1’ from the site theme to determine the background color for each one of the navigation items. However, SharePoint doesn’t directly use the user-provided hex code for this accent. Instead, there seems to be some sort of a ‘normalizing’ algorithm that generates a new hex code. </p>
<p>1) Let us set the Accent 1 color for our site theme to Red (#FF0000):</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Accent 1 Select a Color Color Old Color #FF0000 New Color #FF0000 OK Cancel" border="0" alt="Accent 1 Select a Color Color Old Color #FF0000 New Color #FF0000 OK Cancel" src="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image_thumb.png" width="537" height="363" /></a> </p>
<p>2) Now inspect the global top navigation bar and what you’ll notice is that the background color is NOT what you would have expected. SharePoint interpreted the red accent and generated its own hex code: #FFA5A5</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="Home Global Navigation Background" border="0" alt="Home Global Navigation Background" src="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image_thumb1.png" width="99" height="102" /></a>&#160;<a href="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="corev4-8A0ABD2F.css .s4-toplinks .s4-tn A.selected - background: url(selbg-1A8EB265.png?ctag) #ffa5a5 repeat-x left top" border="0" alt="corev4-8A0ABD2F.css .s4-toplinks .s4-tn A.selected - background: url(selbg-1A8EB265.png?ctag) #ffa5a5 repeat-x left top" src="http://www.pranavsharma.com/blog/wp-content/uploads/2010/05/image_thumb2.png" width="686" height="65" /></a></p>
<p><strong>Conclusion     <br /></strong>SharePoint doesn’t directly use ‘Site Themes’ but instead seems to generate its own interpretations based upon it. Therefore, designers looking for some discreet control over the branding of a SharePoint site need to still write custom CSS in 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/05/03/sharepoint-2010-site-themes-are-not-exact/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MOSS &#8211; Site Local Search incompatible with Server Name Mappings</title>
		<link>http://www.pranavsharma.com/blog/2010/02/26/moss-site-local-search-incompatible-with-server-name-mappings/</link>
		<comments>http://www.pranavsharma.com/blog/2010/02/26/moss-site-local-search-incompatible-with-server-name-mappings/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 01:25:04 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2007 ( MOSS / WSS )]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/02/26/moss-site-local-search-incompatible-with-server-name-mappings/</guid>
		<description><![CDATA[In order to do site specific search (a.k.a. “This Site” scope) you can append a query string parameter as follows- http://server/results.aspx?k=sharepoint&#38;u=http%3A%2F%2Fserver%2Flists Problem The above will return zero results if you have a server name mapping configured in your search settings- Solution Removing the server name mapping will resolve this issue and site specific search works [...]]]></description>
			<content:encoded><![CDATA[<p>In order to do site specific search (a.k.a. “This Site” scope) you can append a query string parameter as follows-</p>
<p><a href="http://server/results.aspx?k=sharepoint&amp;u=http%3A%2F%2Fserver%2Flists">http://server/results.aspx?k=sharepoint&amp;<strong>u=http%3A%2F%2Fserver%2Flists</strong></a></p>
<p><strong><u>Problem       <br /></u></strong>The above will return zero results if you have a server name mapping configured in your search settings-</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2010/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.pranavsharma.com/blog/wp-content/uploads/2010/02/image_thumb.png" width="459" height="183" /></a> </p>
<p><strong><u>Solution</u></strong>    <br />Removing the server name mapping will resolve this issue and site specific search works as expected</p>
<p>&#160;</p>
<p>Tip: Adding a query string url restriction is equivalent to the following-   <br />&#160;<a href="http://www.pranavsharma.com/blog/wp-content/uploads/2010/02/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.pranavsharma.com/blog/wp-content/uploads/2010/02/image_thumb1.png" width="322" height="70" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/02/26/moss-site-local-search-incompatible-with-server-name-mappings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text selection disabled w/ Kwizcom Calendar Plus</title>
		<link>http://www.pranavsharma.com/blog/2010/01/26/text-selection-disabled-w-kwizcom-calendar-plus/</link>
		<comments>http://www.pranavsharma.com/blog/2010/01/26/text-selection-disabled-w-kwizcom-calendar-plus/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 15:52:37 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Kwizcom]]></category>
		<category><![CDATA[Sharepoint 2007 ( MOSS / WSS )]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2010/01/26/text-selection-disabled-w-kwizcom-calendar-plus/</guid>
		<description><![CDATA[Problem After installing Kwizcom Calendar 3.2.90, text selection is disabled on your sharepoint site on pages that have the calendar webpart. This was a huge issue for us since we had the minicalendar in the page header. Workaround Modify one of the Kwizcom javascript files (“12\TEMPLATE\LAYOUTS\KWizCom_KSCP\KSCP.js”) to comment out the drag drop functionality (See lines [...]]]></description>
			<content:encoded><![CDATA[<p><strong><u>Problem        <br /></u></strong>After installing Kwizcom Calendar 3.2.90, text selection is disabled on your sharepoint site on pages that have the calendar webpart. This was a huge issue for us since we had the minicalendar in the page header.</p>
<p><strong><u>Workaround </u></strong>    <br />Modify one of the Kwizcom javascript files (“12\TEMPLATE\LAYOUTS\KWizCom_KSCP\KSCP.js”) to comment out the drag drop functionality (See lines 13, 21 &amp; 22) -</p>
<div class="csharpcode">
<div class="csharpcode">
<pre><span class="lnum">   1:  </span><span class="kwrd">function</span> kwiz_cal_DragDropOnLoad(q)</pre>
<pre><span class="lnum">   2:  </span>{</pre>
<pre><span class="lnum">   3:  </span>    g_WPQ = q;</pre>
<pre><span class="lnum">   4:  </span>&#160;</pre>
<pre><span class="lnum">   5:  </span>    <span class="rem">// attach onscroll event (needed for recalculating table cells positions)</span></pre>
<pre><span class="lnum">   6:  </span>    window.onscroll = kwiz_cal_Scroll;</pre>
<pre><span class="lnum">   7:  </span>    </pre>
<pre><span class="lnum">   8:  </span>    <span class="kwrd">if</span>(browseris.ie || browseris.safari)</pre>
<pre><span class="lnum">   9:  </span>    {</pre>
<pre><span class="lnum">  10:  </span>        kwiz_cal_Calculate_Cells();</pre>
<pre><span class="lnum">  11:  </span>        </pre>
<pre><span class="lnum">  12:  </span>        <span class="rem">// disable text selection for ie, safari</span></pre>
<pre><span class="lnum">  13:  </span>        <span class="rem">//document.onselectstart = function(event) {return false};</span></pre>
<pre><span class="lnum">  14:  </span>    }</pre>
<pre><span class="lnum">  15:  </span>    <span class="kwrd">else</span></pre>
<pre><span class="lnum">  16:  </span>    {</pre>
<pre><span class="lnum">  17:  </span>        <span class="rem">// firefox does not execute this function when assigning to onscroll event, but IE &amp; Chrome do</span></pre>
<pre><span class="lnum">  18:  </span>        kwiz_cal_Scroll(); </pre>
<pre><span class="lnum">  19:  </span>        </pre>
<pre><span class="lnum">  20:  </span>        <span class="rem">// disable text selection for firefox</span></pre>
<pre><span class="lnum">  21:  </span>        <span class="rem">//if (typeof document.body.style.MozUserSelect != &quot;undefined&quot;) </span></pre>
<pre><span class="lnum">  22:  </span>        <span class="rem">//    document.body.style.MozUserSelect = &quot;none&quot;;</span></pre>
<pre><span class="lnum">  23:  </span>    }</pre>
<pre><span class="lnum">  24:  </span>}</pre>
</p></div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</p>
<p><strong><u>More Info</u></strong></p>
<p>The official word from Kwizcom Support on this issue is as follows: </p>
<p><em>“The issue is caused by dragdrop functionality. The new release version 3.3.00 will allow the users to disable drag drop through settings.&#160; Currently there is no exact timeline for release.”</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2010/01/26/text-selection-disabled-w-kwizcom-calendar-plus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chromium OS &#8211; First Look</title>
		<link>http://www.pranavsharma.com/blog/2009/11/20/chromium-os-first-look/</link>
		<comments>http://www.pranavsharma.com/blog/2009/11/20/chromium-os-first-look/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 09:07:09 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Chromium OS]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2009/11/20/chromium-os-first-look/</guid>
		<description><![CDATA[1) Boot up &#38; Login You can login using either your regular Gmail account or your Google apps account. You can even sign in when there is no network connection. Presumably you would have had to sign in once with the network on but from there on outwards the OS seems to cache your credentials. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1) Boot up &amp; Login</strong>    <br />You can login using either your regular Gmail account or your Google apps account. You can even sign in when there is no network connection. Presumably you would have had to sign in once with the network on but from there on outwards the OS seems to cache your credentials.</p>
<p>Boot up was under 15 seconds on all attempts with a VMware configured with 256MB RAM and 1 Processor at 2.4 GHz. From login screen to home screen took under 5 seconds on all attempts.</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image19.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Login" border="0" alt="Login" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb19.png" width="454" height="342" /></a> </p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image20.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Signing In" border="0" alt="Signing In" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb20.png" width="454" height="342" /></a> </p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong>2) Inside the OS     <br /></strong>Upon the first login, Chrome OS opens up 2 tabs that would be most commonly used: Mail &amp; Calendar. However after resetting the machine chromium only displayed the Google home screen. The homepages are configurable (See configuration options below)</p>
<p>There is a button on the top left that seems to be the equivalent of a “Start” button in windows. However you need a “@google.com” account to access any “Google Short Links” here. Neither my Gmail account nor my Google Apps account worked here.</p>
</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image21.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Homepage" border="0" alt="Homepage" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb21.png" width="454" height="342" /></a> </p>
</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image22.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Chrome Button" border="0" alt="Chrome Button" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb22.png" width="454" height="342" /></a> </p>
</p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong>3) Configuration Options</strong>    <br />Configuration options can be accessed from the top right drop down menu. Looks like Google is planning on supporting other browsers besides just chrome based upon the second configuration screen.</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image23.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Options" border="0" alt="Options" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb23.png" width="454" height="342" /></a> </p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image24.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Chromium OS" border="0" alt="Chromium OS" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb24.png" width="454" height="342" /></a> </p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image25.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Basics" border="0" alt="Basics" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb25.png" width="454" height="342" /></a> </p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image26.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Personal Stuff" border="0" alt="Personal Stuff" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb26.png" width="454" height="342" /></a> </p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image27.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Under the Hood" border="0" alt="Under the Hood" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb27.png" width="454" height="342" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2009/11/20/chromium-os-first-look/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Custom Alert Template</title>
		<link>http://www.pranavsharma.com/blog/2009/11/10/custom-alert-template/</link>
		<comments>http://www.pranavsharma.com/blog/2009/11/10/custom-alert-template/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 04:14:26 +0000</pubDate>
		<dc:creator>Pranav Sharma</dc:creator>
				<category><![CDATA[Sharepoint 2007 ( MOSS / WSS )]]></category>

		<guid isPermaLink="false">http://www.pranavsharma.com/blog/2009/11/10/custom-alert-template/</guid>
		<description><![CDATA[Are your alert emails defaulting to the generic template (SPAlertTemplateType.GenericList) even after you’ve specifically updated the list to use a custom alert email template (using myList.AlertTemplate)? Turns out that if you already have an existing alert setup on the list then even if you switch the list to use a different alert template, sharepoint sends [...]]]></description>
			<content:encoded><![CDATA[<p>Are your alert emails defaulting to the generic template (<em>SPAlertTemplateType.GenericList</em>) even after you’ve specifically updated the list to use a custom alert email template (<em>using myList.AlertTemplate</em>)?</p>
<p><a href="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="SPAlertTemplateType.GenericList" border="0" alt="SPAlertTemplateType.GenericList" src="http://www.pranavsharma.com/blog/wp-content/uploads/2009/11/image_thumb.png" width="642" height="234" /></a> </p>
<p>Turns out that if you already have an existing alert setup on the list then even if you switch the list to use a different alert template, sharepoint sends you alert emails using the template that was assigned to the list when you ORIGINALLY setup the alert.</p>
<p>So the <strong><u>SOLUTION</u></strong> is to delete your existing alert and re-subscribe to the list.</p>
<p>If you would like to know more on how to customize the alert email templates in sharepoint then this is a great resource: <a href="http://blogs.msdn.com/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx">Customizing Alert Notifications and Alert Templates in Windows SharePoint Services 3.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pranavsharma.com/blog/2009/11/10/custom-alert-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
