<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>MOSS</title>
        <link>http://geekswithblogs.net/shehan/category/7762.aspx</link>
        <description>MOSS</description>
        <language>en-US</language>
        <copyright>shehan</copyright>
        <managingEditor>digitalshehan@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Get all replies to a discussion</title>
            <link>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx</link>
            <description>&lt;p&gt;A discussion list in unlike a normal list in that it consists of two content types  - a Discussion content type that maps to the discussion topic and a Message that maps to all replies to the topic. If you examine the Discussion content type you’ll see that its inherited from the Folder content type.&lt;/p&gt;  &lt;p&gt;The reply contains a field called ‘ParentFolderId’ and as the name suggests it holds the ID of the discussion topic. So naturally if you were to do a query on the list for all items with the same ParentFolderId you would expect the query to work. However, since the topic is of a folder content type and the replies are contained within the ‘folder’ you would need to set the  queries ViewAttributes property to "Scope='Recursive'" for it to return results.&lt;/p&gt;  &lt;p&gt;Below is an example using the object model:&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre class="alt"&gt;SPQuery query = &lt;span class="kwrd"&gt;new&lt;/span&gt; SPQuery();&lt;/pre&gt;

  &lt;pre&gt;query.ViewAttributes = &lt;span class="str"&gt;"Scope='Recursive'"&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;StringBuilder queryString = &lt;span class="kwrd"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"         &amp;lt;Where&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"              &amp;lt;And&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;FieldRef Name=\"ContentType\" /&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;Value Type=\"Text\"&amp;gt;Message&amp;lt;/Value&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;/Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;FieldRef Name=\"ParentFolderId\" /&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;Value Type=\"Number\"&amp;gt;99&amp;lt;/Value&amp;gt;"&lt;/span&gt;); &lt;span class="rem"&gt;//NOTE: change this to the value you need&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;/Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"              &amp;lt;/And&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"         &amp;lt;/Where&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;query.Query = queryString.ToString();&lt;/pre&gt;

  &lt;pre class="alt"&gt;DataTable replyTable = discussionList.GetItems(query).GetDataTable();&lt;/pre&gt;
&lt;/div&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[

.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; }]]&gt;&lt;/style&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:427cc8ce-2140-4c4a-ae38-c6e36570310b" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Discussion" rel="tag"&gt;Discussion&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Replies" rel="tag"&gt;Replies&lt;/a&gt;,&lt;a href="http://technorati.com/tags/CAML" rel="tag"&gt;CAML&lt;/a&gt;,&lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=135471"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=135471" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/135471.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx</guid>
            <pubDate>Sat, 10 Oct 2009 15:40:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/135471.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/135471.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/135471.aspx</trackback:ping>
        </item>
        <item>
            <title>Change the format of the 'Created By' field in a page layout</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/12/23/change-the-format-of-the-created-by-field-in-a.aspx</link>
            <description>&lt;p&gt;I was creating a custom page layout for a publishing site and one of the requirements was to display the 'Created By' field. Piece of cake, I thought, all I need to do was to all add the following:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;SharePointWebControls:TextField&lt;/span&gt; &lt;span class="attr"&gt;FieldName&lt;/span&gt;&lt;span class="kwrd"&gt;="Created_x0020_By"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;However, this resulted in the field being rendered in the format- 'domain\username'. But on the 'View Properties' (DispForm.aspx) for the page the Created By field shown at the bottom of the page is in the correct format -'FirstName LastName'.&lt;/p&gt;
&lt;p&gt;After some experimenting and researching this is the tag I had to use to get the correct format:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;SharePoint:FormField&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="FormField1"&lt;/span&gt; &lt;span class="attr"&gt;ControlMode&lt;/span&gt;&lt;span class="kwrd"&gt;="Display"&lt;/span&gt; &lt;span class="attr"&gt;FieldName&lt;/span&gt;&lt;span class="kwrd"&gt;="Author"&lt;/span&gt; &lt;span class="attr"&gt;DisableInputFieldLabel&lt;/span&gt;&lt;span class="kwrd"&gt;="true"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="kwrd"&gt;     &lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="kwrd"&gt;Note: the 'SharePoint' tag prefix for the above maps to:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;%@Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.WebControls"%&amp;gt; &lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3146ce1f-2cbf-4f3f-9d25-c7ee53151442" style="margin: 0px; padding: 0px; display: inline;"&gt;Technorati Tags: &lt;a rel="tag" href="http://technorati.com/tags/SharePoint"&gt;SharePoint&lt;/a&gt;,&lt;a rel="tag" href="http://technorati.com/tags/Created%20By"&gt;Created By&lt;/a&gt;,&lt;a rel="tag" href="http://technorati.com/tags/Page%20Layout"&gt;Page Layout&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130094"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130094" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/130094.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/12/23/change-the-format-of-the-created-by-field-in-a.aspx</guid>
            <pubDate>Tue, 23 Dec 2008 16:13:26 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/130094.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/12/23/change-the-format-of-the-created-by-field-in-a.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/130094.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/130094.aspx</trackback:ping>
        </item>
        <item>
            <title>Deploying Web Parts to farms with more than 1 WFE</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx</link>
            <description>&lt;p&gt;If you're developing webparts using &lt;a title="Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions" target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&amp;amp;displaylang=en"&gt;VSeWSS&lt;/a&gt; and going to run the setup.bat that that VSeWSS creates, you might need to modify the deploy solution line before running it.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;&lt;a target="_blank" href="http://technet.microsoft.com/en-us/library/cc262459.aspx"&gt;deploysolution&lt;/a&gt;&lt;/em&gt; instruction that VSeWSS adds contains the -&lt;em&gt;local&lt;/em&gt; argument. This is all good if you're going to run it on an implementation with only 1 WFE, but for farms with 2 or more WFE's then you will need to change &lt;em&gt;-local&lt;/em&gt; to &lt;em&gt;-immediate&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I also make it a habit to call the &lt;em&gt;&lt;a target="_blank" href="http://technet.microsoft.com/en-us/library/cc262783.aspx"&gt;execadmsvcjobs&lt;/a&gt;&lt;/em&gt; command before and after adding and deploying.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;div style="margin: 0px; padding: 0px; display: inline;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:943954cf-17c1-4605-b7d6-9f988115ca61" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/WSS" rel="tag"&gt;WSS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/MOSS" rel="tag"&gt;MOSS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/VSeWSS" rel="tag"&gt;VSeWSS&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127587"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127587" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/127587.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx</guid>
            <pubDate>Tue, 02 Dec 2008 09:50:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/127587.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/127587.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/127587.aspx</trackback:ping>
        </item>
        <item>
            <title>Search only items of a custom list</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/07/09/search-only-items-of-a-custom-list.aspx</link>
            <description>&lt;p&gt;Had a requirement where search results should be limited to only items of a list. Naturally, I created a new Search Scope and set a rule of type Web Address to include the particular site holding the lists.&lt;/p&gt;
&lt;p&gt;Well...it did work, but not to my expectations. What was happening was that in addition to displaying the list items, the list views were also being displayed and so were other pages in the site....DOH!&lt;/p&gt;
&lt;p&gt;Doing a search on the net led me to &lt;a href="http://www.devcow.com/blogs/jdattis/archive/2007/12/20/the-contentclass-and-isdocument-properties-along-with-the-welcome-page-caveat.aspx" target="_blank"&gt;this&lt;/a&gt; site. It was very informative, but it didn't  provided the contentclass value I should use for a list created using the Custom List template....&lt;/p&gt;
&lt;p&gt;Took me a while, but eventually tracked down the contentclass value - "STS_ListItem_GenericList"&lt;/p&gt;
&lt;p&gt;So, long story short; here are the two rules I used for the scope:&lt;/p&gt;
&lt;p&gt;Rule1:   &lt;br /&gt;
Scope Rule Type: Web Address    &lt;br /&gt;
Folder: &amp;lt;the site I need to search&amp;gt;    &lt;br /&gt;
Behavior: Include    &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Rule 2:   &lt;br /&gt;
Scope Rule Type: Property Query &lt;br /&gt;
Property Query: contentclass = STS_ListItem_GenericList    &lt;br /&gt;
Behavior: Require &lt;/p&gt;
&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2ff30339-3da9-4de9-92ba-e9758ed0622b" style="margin: 0px; padding: 0px; display: inline; float: none;"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/moss" rel="tag"&gt;moss&lt;/a&gt;,&lt;a href="http://technorati.com/tags/search" rel="tag"&gt;search&lt;/a&gt;,&lt;a href="http://technorati.com/tags/scope" rel="tag"&gt;scope&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123674"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123674" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/123674.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/07/09/search-only-items-of-a-custom-list.aspx</guid>
            <pubDate>Thu, 10 Jul 2008 00:27:33 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/123674.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/07/09/search-only-items-of-a-custom-list.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/123674.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/123674.aspx</trackback:ping>
        </item>
        <item>
            <title>Truncate the characters displayed in a blog post</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx</link>
            <description>&lt;p&gt;This is how to reduce the number of characters displayed in a blog post on the default.aspx page of a blog site created from the OOTB SharePoint blog template.&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Open up the site in SharePoint Designer&lt;/li&gt;
    &lt;li&gt;Open the default.aspx and switch to Code View&lt;/li&gt;
    &lt;li&gt;Perform a Find &amp;amp; Replace for the following:
    &lt;ul&gt;
        &lt;li&gt;Find-
        &lt;ul&gt;
            &lt;li&gt;
            &lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Field Name="Body"/&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;/pre&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
        &lt;style type="text/css"&gt;&lt;![CDATA[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; }
]]&gt;&lt;/style&gt;
        &lt;li&gt;Replace-
        &lt;ul&gt;
            &lt;li&gt;
            &lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Limit Len="99" IgnoreTags="TRUE" MoreText="..."&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Column Name=&lt;span class="attr"&gt;&amp;amp;quot;&lt;/span&gt;Body&lt;span class="attr"&gt;&amp;amp;quot;&lt;/span&gt;/&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;/Limit&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;/pre&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&lt;/span&gt; &lt;/pre&gt;
&lt;pre class="csharpcode"&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/shehan/WindowsLiveWriter/Truncatethecharactersdisplayedinablogpos_D973/image_4.png"&gt;&lt;img height="447" border="0" width="582" style="border: 0px none ;" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/shehan/WindowsLiveWriter/Truncatethecharactersdisplayedinablogpos_D973/image_thumb_1.png" /&gt;&lt;/a&gt; &lt;/pre&gt;
&lt;pre class="csharpcode"&gt; &lt;/pre&gt;
&lt;p&gt;This would limit the number of characters to 99 and display the text contained in the MoreText attribute as the last characters. Check out &lt;a href="http://msdn.microsoft.com/en-us/library/ms440854.aspx" target="_blank"&gt;this&lt;/a&gt; for more info on the Limit element.&lt;/p&gt;
&lt;p&gt;Do remember to back up the page before attempting this just in case.... ;)&lt;/p&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[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; }
]]&gt;&lt;/style&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123641"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123641" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/123641.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx</guid>
            <pubDate>Tue, 08 Jul 2008 21:35:04 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/123641.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx#feedback</comments>
            <slash:comments>7</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/123641.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/123641.aspx</trackback:ping>
        </item>
        <item>
            <title>Display Search Scopes in the Search DoropDown and Advanced Search page</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/28/display-search-scopes-in-the-search-doropdown-and-advanced-search.aspx</link>
            <description>&lt;p&gt;Most of you all would probably be knowing this, but for the newbie out there who is just getting into MOSS's Enterprise Search features this would probably prove useful... &lt;/p&gt;
&lt;p&gt;Lets say that through the SSP Search Configurations page you've gone and created a couple of Scopes. But when you get back to your site collection you notice that none of the scopes appear in the search scope dropdown (normally located on the top right hand corner of the page), you only see the default scopes.&lt;/p&gt;
&lt;p&gt;What you need to do is navigate to Site Settings page (_layouts/settings.aspx) of the top most level site and once there click on the ‘Search keywords’ link under the ‘Site Collection Administration’ section.&lt;/p&gt;
&lt;p&gt;In the Scopes page you will notice that all the custom scopes created are contained in the ‘Unused Scopes’ section while the ‘Display Group: Search Dropdown’ contains ‘All Sites’ and ‘People’ while the ‘Display Group: Advanced Search’ contains only ‘All Sites’.&lt;/p&gt;
&lt;p&gt;Click the ‘Search Dropdown’ link and add the Scopes by checking the appropriate ones. Do the same for the ‘Advanced Search’ link.&lt;/p&gt;
&lt;p&gt;Once done, the custom scopes will appear on all search dropdowns in the site, however they will not appear on the default Advance Search page.&lt;/p&gt;
&lt;p&gt;To get the scopes to appear on the Advanced Search page, navigate to that page (SearchCenter/Pages/advanced.aspx) and from the 'Site Actions' menu select 'Edit Page'. The page will now be checked out to you and be in the edit mode.&lt;/p&gt;
&lt;p&gt;In the 'Advanced Search Box' web part click the 'edit' menu and then select 'Modify Shared Web Part'. The properties box for the web part appears. Expand the 'Scopes' section and check the 'Show the scope picker' option. Hit OK and the web part should update showing the scopes.&lt;/p&gt;
&lt;p&gt;Remember to check in and publish the page so your changes will be seen by everyone who access the page.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120041"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120041" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/120041.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/28/display-search-scopes-in-the-search-doropdown-and-advanced-search.aspx</guid>
            <pubDate>Thu, 28 Feb 2008 22:15:27 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/120041.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/28/display-search-scopes-in-the-search-doropdown-and-advanced-search.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/120041.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/120041.aspx</trackback:ping>
        </item>
        <item>
            <title>Change the &amp;quot;Welcome&amp;quot; link font color</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx</link>
            <description>&lt;p&gt;As part of configuring enterprise search for a company's portal, one of the requirements was changing the look and feel of the SearchCenter. In short, they wanted a very Google like UI - I.e. nothing too flashy or heavy.&lt;/p&gt;
&lt;p&gt;So, I started off creating a minimal master page and adjusting the layouts - nothing major just positioning the controls etc.. Now, to change the appearance of the webparts required modifications to the default styles located in the core.css file and thanks to &lt;a href="http://www.heathersolomon.com/content/sp07cssreference.htm#Global" nofollow=""&gt;Heather Solomons CSS Reference Chart&lt;/a&gt; this was pretty much easy. But when it came to changing the font color of the "Welcome" link, changes to the styles mentioned by her weren't working....&lt;/p&gt;
&lt;p&gt;Took me a while, but managed to find the solution by examining the source of the generated web page. Seems that the style in use for the font color of the "Welcome" link is: &lt;em&gt;.ms-SPLink A:link,.ms-SPLink A:visited&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;To change the font color, modify the existing class like:&lt;/p&gt;
&lt;p&gt;.ms-SPLink A:link,.ms-SPLink A:visited    &lt;br /&gt;
{     &lt;br /&gt;
color: #FFFFFF; /*#2A4666; this is the font color for the "Welcome" Link*/     &lt;br /&gt;
text-decoration:none;     &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;and if you want to change the font color on mouse over then add a new class:    &lt;br /&gt;
.ms-SPLink A:hover     &lt;br /&gt;
{&lt;/p&gt;
&lt;p&gt;color: #66FFFF; /*this is the font color for the "Welcome" Link - mouse over*/    &lt;br /&gt;
text-decoration:none;     &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Do remember that changes to the core.css file will result in changes that will be reflected all over the portal. So, if you only want the change to appear in on site don't go change the cosre.css file....&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119948"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119948" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/119948.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx</guid>
            <pubDate>Mon, 25 Feb 2008 23:18:33 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/119948.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/119948.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/119948.aspx</trackback:ping>
        </item>
        <item>
            <title>Highlight Search Results</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx</link>
            <description>OOTB the Search Core Results webpart simply emphasizes the search string you entered in the Search Box by wrapping it within the &amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; tags. But let’s say you need to highlight the search terms in different colors; what do you do? Write a new results webpart? No! you only need to adjust the Search Core Results  XLS.&lt;br /&gt;
&lt;br /&gt;
This is how it’s done:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Open up the XLS editor and copy the contents  to notepad or some other  editor (if your fine with editing it in the MOSS’s default editor, go right ahead)&lt;/li&gt;
    &lt;li&gt;Search for the term &amp;lt;xsl:template match="ddd"&amp;gt;&lt;/li&gt;
    &lt;li&gt;Just below that you will see :&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="margin-left: 40px;"&gt; &amp;lt;xsl:template match="c0"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;xsl:value-of select="."/&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:template match="c1"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;xsl:value-of select="."/&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;And this goes on till “c9”. The values “c0” to “c9” correspond to the search terms you entered, where “c0” is the first, “c1” is the second and so on…&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Replace this with something like:&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="margin-left: 40px;"&gt;  &amp;lt;xsl:template match="c0"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;strong style="background-color: #CCCCFF"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;xsl:value-of select="."/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xsl:template match="c1"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;strong style="background-color: #CCFFFF"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;xsl:value-of select="."/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;As you can see I’ve used the style “background-color” to give each search term its own color.&lt;br /&gt;
&lt;/div&gt;
&lt;ul&gt;
    &lt;li&gt; Once done copy the updated XLS file back to the webpart and save&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Searching for "&lt;span style="font-style: italic;"&gt;microsoft sharepoint server&lt;/span&gt;"&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt; with the default XLS:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;img width="816" height="82" align="left" alt="with default XLS" src="/images/geekswithblogs_net/shehan/blogImages/highlightNO.PNG" /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;&lt;br /&gt;
with the modified XLS:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;div style="text-align: left;"&gt;&lt;img width="816" height="82" align="left" alt="with modified XLS" src="/images/geekswithblogs_net/shehan/blogImages/highlight.PNG" /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt; &lt;/div&gt;
&lt;div style="text-align: left; color: rgb(255, 255, 255);"&gt;&lt;a href="http://technorati.com/claim/t6dcxj7q5f" rel="me" style="background-color: rgb(255, 255, 255);"&gt;Technorati Profile&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119834"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119834" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/119834.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx</guid>
            <pubDate>Fri, 22 Feb 2008 01:38:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/119834.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/119834.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/119834.aspx</trackback:ping>
        </item>
        <item>
            <title>Crawl Log Exporter</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/21/crawl-log-exporter.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;As part of setting up Enterprise Search for a major IT company, I had to create content sources for a number of web sites hosted on the company’s intranet. Pretty easy you say, well yes. But the problems arose when MOSS began crawling the websites. &lt;/p&gt;
&lt;p class="MsoNormal"&gt;There were more Crawl Errors in the crawl log than Crawl Successes. Seems that the web applications MOSS was crawling were not being maintained properly and there were loads of broken links. Naturally, I pointed this fact out to the administrators and naturally they asked me for the list of broken links, etc. &lt;span style=""&gt;&lt;/span&gt;Well, if there were only a couple of errors I could easily copy and paste the offending &lt;span style=""&gt; &lt;/span&gt;URLs, but these sites had loads and I couldn’t find an “export log” &lt;span style=""&gt; &lt;/span&gt;feature, drat!!!&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Right, so the only option was to cook up a little C# winform application to export the crawl log. Easier said than done :) Other than for MSDN I couldn’t find anything else online to get me started, so, had to use Reflector quite a bit to figure out the internal workings of the assemblies, but managed to get something going….&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I’ve uploaded the complied application on ProjectDistributor and looking to soon put it up on CodePlex.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;As of now the log can be exported to only CSV format and there is no threading, so don’t freak out when the app starts hanging. &lt;span style=""&gt; &lt;/span&gt;I’ll be refactoring the code and adding more export options once I get the time…&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Get the application from here:  &lt;span style=""&gt;&lt;br /&gt;
&lt;/span&gt;&lt;a href="http://www.projectdistributor.net/Projects/Project.aspx?projectId=259"&gt;http://www.projectdistributor.net/Projects/Project.aspx?projectId=259&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119831"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119831" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/119831.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/21/crawl-log-exporter.aspx</guid>
            <pubDate>Thu, 21 Feb 2008 23:44:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/119831.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/21/crawl-log-exporter.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/119831.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/119831.aspx</trackback:ping>
        </item>
    </channel>
</rss>