<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Bend Sharepoint without bending the rules</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/syedi/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/syedi/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:33:28 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Item Level Audience targeting in XSLTListViewWebPart</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/item-level-audience-targeting-in-xsltlistviewwebpart</link>
      <pubDate>Tue, 31 Jul 2012 07:28:49 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2012/07/31/item-level-audience-targeting-in-xsltlistviewwebpart/</guid>
      <description><![CDATA[&#160;  You can enable “Audience Targeting” in list level in SharePoint 2010, When you enable the...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><font color="#004080" size="3">You can enable “Audience Targeting” in list level in SharePoint 2010, When you enable the Audience Targeting a filed called “Target Audience” is added to the list and you can populate this field with target audience for every item to show the items only to the specified audience. But the audience filtering doesn’t apply to XSLTListViewWebPart and only applies to “ContentByQueryWebpart”. That means, you cant expect the XSLTListViewWebPart to filter the items based on audience while you are viewing the items in the list view or through XSLTListViewWebPart in any web part page, This item level audience filtering works only when you use the “ContentByQueryWebpart” and configures it to apply audience filtering. </font></p>  <p><font color="#004080" size="3">This behavior is because item level audience filtering is implemented through “CrossListQueryCache” and “CrossListQueryInfo” API and ContentByQueryWebpart uses them to query against the sites and lists, Hence able to apply the item level audience filtering in the ContentByQueryWebpart, But the XSLTListViewWebPart renders the item based on view (SPView) which fetches the item based on the “Query” (SPQuery) element of view. In Short, Item level audience filtering cannot be applied for XSLTListViewWebPart. </font></p>  <p><font color="#004080" size="3"> I have implemented the following work around to filter the list items based on audience in the XSLTListViewWebPart </font></p>  <p><font color="#004080" size="3">1.&#160;&#160;&#160; Construct the CrossListQueryInfo and CrossListQueryCache to fetch the items from the list     <br />2.&#160;&#160;&#160; The result set after executing the CrossListQueryInfo would be “DataTable” which cannot be fed to XSLTListViewWebPart directly, So need to loop through the “rows” in the datatable and get the “Target Audience” field value      <br />3.&#160;&#160;&#160; Construct the CAML query on the fly based on the “Target Audience” field value in the result data table and apply the query to the current view using XMLDefinition property of XSLTListViewWebPart.       <br />4.&#160;&#160;&#160; Implement the above steps in a hidden control/delegate/WebPart and it to the “AllItems.aspx” view page or to any other web part page which has the XSLTListViewWebPart. </font></p>  <p><font color="#004080" size="3">Following is the sample hidden web part which implements the above said work around, Create the hidden web part and add it to the Web Part page which has the XSLTListViewWebPart : </font></p>  <p><font color="#004080" size="3">It’s a hidden web part doesn’t carry any control and the code is implemented in the “OnLoad” event of the Web part :</font></p>  <p><font color="#004080" size="3">&#160;</font></p>  <div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">   <div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">     <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">protected</span> <span style="color: #0000ff">override</span> <span style="color: #0000ff">void</span> OnLoad(EventArgs e)</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">        {</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            <span style="color: #0000ff">base</span>.OnLoad(e);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            CrossListQueryInfo cqInfo = <span style="color: #0000ff">new</span> CrossListQueryInfo();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.Lists = <span style="color: #006080">&quot;&lt;Lists&gt;&lt;List ID=\&quot;60C4944A-9E1C-4089-ADDF-A6EAD9274029\&quot; /&gt;&lt;/Lists&gt;&quot;</span>; <span style="color: #008000">// Hard coded GUID of the List</span></pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.AudienceFieldId = <span style="color: #006080">&quot;Target_x0020_Audiences&quot;</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.ViewFields = <span style="color: #006080">&quot;&lt;FieldRef Name=\&quot;Title\&quot; /&gt;&lt;FieldRef Name=\&quot;Body\&quot; /&gt;&lt;FieldRef Name=\&quot;Target_x0020_Audiences\&quot; /&gt;&quot;</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.Webs = <span style="color: #006080">&quot;&lt;Webs Scope=\&quot;Recursive\&quot; /&gt;&quot;</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.Query = <span style="color: #006080">&quot;&lt;Where&gt;&lt;/Where&gt;&quot;</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.RowLimit = 500;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.FilterByAudience = <span style="color: #0000ff">true</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            cqInfo.UseCache = <span style="color: #0000ff">true</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            CrossListQueryCache clqc = <span style="color: #0000ff">new</span> CrossListQueryCache(cqInfo);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            DataTable dt = clqc.GetSiteData(SPContext.Current.Site, SPContext.Current.Web.Url); <span style="color: #008000">// Get the datatable after Audience filtering</span></pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            SPWeb web = SPContext.Current.Web;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            SPList oList = SPContext.Current.Web.Lists[<span style="color: #006080">&quot;Custom Announcements&quot;</span>];</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager(web.Url + <span style="color: #006080">&quot;/sitepages/Home.aspx&quot;</span>, PersonalizationScope.Shared);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            oWP = <span style="color: #0000ff">this</span>.WebPartManager.WebParts.OfType&lt;Microsoft.SharePoint.WebPartPages.XsltListViewWebPart&gt;().FirstOrDefault();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            SPQuery oQuery = <span style="color: #0000ff">new</span> SPQuery();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            <span style="color: #0000ff">string</span> query = BuildCAMLQuery(dt); <span style="color: #008000">// Build the Query for the current view to filter the items by getting the Target Audience values from Datatable</span></pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            XmlDocument viewXmlDoc = <span style="color: #0000ff">new</span> XmlDocument();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            viewXmlDoc.LoadXml(oWP.XmlDefinition);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            XmlNode queryNode = viewXmlDoc.DocumentElement.SelectSingleNode(<span style="color: #006080">&quot;Query&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            queryNode.InnerXml = query;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            oWP.XmlDefinition = viewXmlDoc.OuterXml;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">           </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">           </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            <span style="color: #0000ff">this</span>.Hidden = <span style="color: #0000ff">true</span>;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">        }</pre>
<!--CRLF--></div>
</div>

<p>&#160;</p>

<p><font color="#004080" size="3">Following is the BuildCAMLQuery method which is used above in which i am building the CAML query based on the values of returned dataset from CrossListQueryCache </font></p>

<p><font color="#004080" size="3">&#160;</font></p>

<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
  <div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">public</span> <span style="color: #0000ff">string</span> BuildCAMLQuery(DataTable oDt)</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">        {</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            StringBuilder sb = <span style="color: #0000ff">new</span> StringBuilder();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;Where&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;In&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;FieldRef Name='Target_x0020_Audiences'/&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;Values&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            <span style="color: #0000ff">foreach</span> (DataRow dr <span style="color: #0000ff">in</span> oDt.Rows)</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            {</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">                sb.Append(<span style="color: #006080">&quot;&lt;Value Type='TargetTo'&gt;&quot;</span> + dr[<span style="color: #006080">&quot;Target_x0020_Audiences&quot;</span>].ToString() + <span style="color: #006080">&quot;&lt;/Value&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            }</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;/Values&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;/In&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            sb.Append(<span style="color: #006080">&quot;&lt;/Where&gt;&quot;</span>);</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">        </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">            <span style="color: #0000ff">return</span> sb.ToString();</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">        }    </pre>
<!--CRLF-->

    <pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &quot;Courier New&quot;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<!--CRLF--></div>
</div>

<p>&#160;</p>

<p><font color="#004080" size="3">Deploy this WebPart to the site and add the Hidden WebPart&#160; to the view page or to the web part page in which you have the XSLTListViewWebPart, I have a hardcoded List ID in the above sample, You can create a configurable web part property to provide the list id.</font></p>

<p>&#160;</p>

<blockquote>
  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font size="3"><strong><em> <font color="#004080">HAPPY CUSTOMIZING</font></em></strong></font></p></blockquote>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 Preview : Stand alone server set up : Facts and Fallacies</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/sharepoint-2013-preview-stand-alone-server-set-up-facts-and-fallacies</link>
      <pubDate>Thu, 26 Jul 2012 17:31:38 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2012/07/26/sharepoint-2013-preview-stand-alone-server-set-up-facts-and-fallacies/</guid>
      <description><![CDATA[&#160;  There have been so many Myths around “SharePoint 2013 Preview Stand alone installation” and...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p><font color="#004080" size="3">There have been so many Myths around “SharePoint 2013 Preview Stand alone installation” and its issues… Of course lots of work around to overcome the issues are revolving around in the web, Before you try them please read below : </font></p>  <p><font color="#004080" size="3">Following is the main issue which you may encounter while installing the SharePoint 2013 preview in “Stand Alone” mode in a Work Group environment or in a Domain Controller: </font></p>  <p><font color="#004080" size="3">ErrorCode:SubStatus:     <br />Service running under Network Service account in workgroup environment is not supported </font></p>  <p><font color="#004080" size="3">Don’t work around this issue by creating Configuration Database through PowerShell by excluding the Distribution Cache service…. Even though your server will be up and running but you will loose lot of functions (Especially User Profiles and My Sites) around distribution cache and also will see lots of unexpected behavior in service application such as User profile, Search Etc. </font></p>  <p><font color="#004080" size="3">I have installed the SharePoint 2013 Preview in a stand alone server connected to my domain running in a different server and i don't have any issues and everything went well. </font></p>  <p><font color="#004080" size="3"><strong><em><u>So the Moral of the story is, Not only the complete farm set up (Which is obvious), Don’t install the SharePoint 2013 Preview in a Work Group environment or in a Domain controller even in Stand alone server set up which is not supported. </u></em></strong></font></p>  <p><font color="#004080" size="3">Product group is updating the documentation and will be updated in a week or so.</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Crawl time Item level security trimming for External System in SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/crawl-time-item-level-security-trimming-for-external-system-in-sharepoint-2010</link>
      <pubDate>Wed, 18 Jul 2012 00:29:00 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2012/07/18/crawl-time-item-level-security-trimming-for-external-system-in-sharepoint-2010/</guid>
      <description><![CDATA[Unlike MOSS 2007 where you can only do the Query time security trimming on BDC Entities...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">Unlike MOSS 2007 where you can only do the Query time security trimming on BDC Entities (</span><a href="https://msdn.microsoft.com/en-us/library/aa980904(v=office.12).aspx)"><span style="font-size: small;" size="3">https://msdn.microsoft.com/en-us/library/aa980904(v=office.12).aspx)</span></a><span style="font-size: small;" size="3"> , In SPS 2010 you can implement the security trimming in Crawl time itself (</span><a href="https://msdn.microsoft.com/en-us/library/gg294169.aspx"><span style="font-size: small;" size="3">https://msdn.microsoft.com/en-us/library/gg294169.aspx</span></a><span style="font-size: small;" size="3">). This article is missing with the sample for implementing the item level security through .NET connector.&nbsp;&nbsp;&nbsp; </span></span><span style="color: #1f497d;"></span></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">When it comes to trimming search results on BCS external system, there are two approaches : You can trim during CRAWL time or during QUERY time.</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><span style="color: #1f497d;">QUERY time security trimming :</span><span style="color: #1f497d;"></span></span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">Trimming search results at query time requires that the permission for the current user be checked against every item returned from the search query (Crawled URL) after the query is complete. This is potentially a very expensive process, but it may be required because of the external system or because SharePoint is using something other than active directory for security. If you are using NTLM users for granting permissions for individual item in external system then the recommended is to go for CRAWL time security trimming as Query time security trimming is expensive process. For CRAWL time security trimming all you need to include is a column to your external system table which will carry the permission information for the item (ROW). If you have huge external system which is already built and if you feel including a column with permission populated in it would be a tedious work then you can opt for query time security trimming.</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><b><span style="color: #1f497d;">CRAWL time security trimming :</span></b><span style="color: #1f497d;"></span></span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">Trimming search results in CRAWL time is preferred approach, because you can build up an Access Control List (ACL) during the crawl that becomes part of the Search Index. Either you can have the set of security principal stored in the external system (in BYTE Array format) for each item and fetch it using BDC model or you can store the user information in external system(in Domain\username String format) for each item and fetch it as a Byte array through BDC .NET Assembly connector. The reason to fetch the security principal information in Byte Array is because BCS uses in built &ldquo;WindowsSecurityDescriptorField&rdquo; property which expects Byte Array to be returned.</span></span></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">Implementing a CRAWL time security trimming in the BDC model which directly connects with external data source is quite easy. All you need to do is to include is the &ldquo;<b>WindowsSecurityDescriptorField</b>&rdquo; property to the specific finder method instance in your BDC model and need to map the external system column which carries the ACL information. (The ACL information in the back end external system need to be stored as BYTE array data type). Following is the sample specific finder method instance of BDCM looks like with CRAWL time security trimming. NOTE : If you are adding any new set of permission then you need run the FULL CRAWL again since the ACL will be built during the Crawl and will be part of the index</span></span></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">The highlighted values below tells you the methodology explained here :</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Method</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Item SpecificFinder </span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Properties</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">RdbCommandType</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.Data.CommandType, System.Data, </span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">&gt;</span>Text<span style="color: blue;">&lt;/</span><span style="color: #a31515;">Property</span><span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">RdbCommandText</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT [Identifier] ,</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<span style="background: yellow; mso-highlight: yellow;">SecurityDescriptor</span>] FROM [Test].[dbo].[Items] WHERE [Identifier] = @Identifier</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">BackEndObjectType</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span>SqlServerTable<span style="color: blue;">&lt;/</span><span style="color: #a31515;">Property</span><span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">BackEndObject</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span>Items<span style="color: blue;">&lt;/</span><span style="color: #a31515;">Property</span><span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Property</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Schema</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span>dbo<span style="color: blue;">&lt;/</span><span style="color: #a31515;">Property</span><span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Properties</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameters</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Direction</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">In</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">@Identifier</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Int32</span>"<span style="color: blue;"> </span><span style="color: red;">IdentifierName</span><span style="color: blue;">=</span>"<span style="color: blue;">Identifier</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">Identifier</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Direction</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Return</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">BaseItemsRead Item</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Data.IDataReader, System.Data, Version=2.0.0.0, </span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">Culture=neutral, PublicKeyToken=b77a5c561934e089</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;"> </span><span style="color: red;">IsCollection</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">BaseItemsRead Item</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Data.IDataRecord, System.Data, Version=2.0.0.0, </span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">Culture=neutral, PublicKeyToken=b77a5c561934e089</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">BaseItemsRead ItemElement</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Int32</span>"<span style="color: blue;"> </span><span style="color: red;">IdentifierName</span><span style="color: blue;">=</span>"<span style="color: blue;">Identifier</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">Identifier</span>"<span style="color: blue;">/&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="background: yellow; color: blue; mso-highlight: yellow;">System.Byte[]</span><span style="color: blue;">, mscorlib, Version=2.0.0.0, </span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">Culture=neutral, PublicKeyToken=b77a5c561934e089</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;"> </span><span style="color: red;">IsCollection</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="background: yellow; color: blue; mso-highlight: yellow;">SecurityDescriptor</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">TypeName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Byte</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">SecurityDescriptorElement</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameters</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstances</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstance</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Type</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">SpecificFinder</span>"<span style="color: blue;"> </span><span style="color: red;">ReturnParameterName</span><span style="color: blue;">=</span>"<span style="color: blue;">BaseItemsRead Item</span>"</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: red; font-size: 9.5pt;">ReturnTypeDescriptorName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">BaseItemsRead ItemElement</span>"<span style="color: blue;"> </span><span style="color: red;">Name</span><span style="color: blue;">=</span>"<span style="color: blue;">BaseItemsRead Item</span>"</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: red; font-size: 9.5pt;">DefaultDisplayName</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">ReadSecurity</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Properties</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="background: yellow; mso-highlight: yellow;">&lt;</span></span><span style="font-family: consolas; background: yellow; color: #a31515; font-size: 9.5pt; mso-highlight: yellow;">Property</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;"> </span><span style="font-family: consolas; background: yellow; color: red; font-size: 9.5pt; mso-highlight: yellow;">Name</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">=</span><span style="font-family: consolas; background: yellow; font-size: 9.5pt; mso-highlight: yellow;">"<span style="color: blue;">WindowsSecurityDescriptorField</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; background: yellow; font-size: 9.5pt; mso-highlight: yellow;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SecurityDescriptor</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; background: yellow; color: #a31515; font-size: 9.5pt; mso-highlight: yellow;">Property</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Properties</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstance</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstances</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Method</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="text-decoration: underline;"><span style="font-size: small;" size="3">Steps to implement CRAWL time security trimming in .NET assembly connector</span></span></span></p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><span style="color: #1f497d;">Implementing CRAWL time security trimmer in the .NET assembly connector requires the definition of a &ldquo;<b>BinarySecurityDescriptorAccessor</b>&rdquo;</span><span class="input"><span style="font-family: 'Segoe UI', 'sans-serif'; color: #1f497d; font-size: 9.5pt;"> </span></span><span style="color: #1f497d;">method. A &ldquo;BinarySecurityDescriptorAccessor&rdquo; method accepts at least an identifier and returns a BYTE array which represents a set of security principals and their associated permissions for the entity instance. . If your .NET assembly is connected with external system then you can get the Security descriptor value by passing the identifier to the external system provided the external should have the security descriptor value stored for every item. The security descriptor returned from the method becomes part of the search index and can be used to trim search results. For ex : if your BCS .NET assembly connector is connected with SQL external system then you can get the security descriptor value stored in the SQL table for every row and can built the ACL in the .NET assembly method and can return it. </span></span></p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><span style="color: #1f497d;">NOTE : If you are adding any new set of permission then you need run the FULL CRAWL again since the ACL will be built during the Crawl and will be part of the index</span><span style="color: #1f497d;"></span></span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">For sample purpose, You can consider the following XML file, Which defines security policy associated with your external system. (This is to show you the sample considering to grant and deny access to set of users for the complete external system items, If you want to grant and deny access to set of users for different items then it&rsquo;s always better to store the set of users in the external system, retrieve the row based on the identifier and retract the value of the security descriptor field and grant access to the user)</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;?</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">xml</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">version</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">1.0</span>"<span style="color: blue;"> </span><span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;">?&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Policy</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Grant</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Account</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">domain\syedi</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Grant</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Deny</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Account</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">domain\ibrahim</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Deny</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Policy</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><span style="color: #1f497d;">You first need to define a &ldquo;BinarySecurityDescriptorAccessor&rdquo; in the .NET assembly connector at a Minimum an &ldquo;In&rdquo; parameter which must be defined as the &ldquo;Identifier&rdquo; and a &ldquo;Return&rdquo; parameter as the &lsquo;Byte&rsquo; array. You need to define a Filter Descriptor to pass in the user name of the current user who is Crawling the BCS content source (&ldquo;DefaultContentAccess&rdquo; account), This account will be used to build the ACL for each instance during the crawl. So you need to have two input (&lsquo;In&rsquo;) parameter, an Identifier and the current logged on user who is crawling the content. Use the VS designer to create &ldquo;BinarySecurityDescriptorAccessor&rdquo; method instance with above told input and return parameters along with the Filter Descriptor. </span><span style="color: #1f497d;"></span></span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">After the method &ldquo;BinarySecurityDescriptorAccessor&rdquo; is defined in the VS designer, Visual Studio automatically stub out the implementation. In addition to the &ldquo;BinarySecurityDescriptorAccessor&rdquo; method you can also map the Security descriptor field using the &ldquo;WindowsSecurityDescriptorField&rdquo; property. If the &ldquo;WindowsSecurityDescriptorField&rdquo; property is not present, the &ldquo;BinarySecurityDescriptorAccessor&rdquo; method will be called whenever the security descriptor of the entity instance is needed.&nbsp; The BDCM for &ldquo;BinarySecurityDescriptorAccessor&rdquo; method instance will look like follows once you designed it in VS :</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Method</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="background: yellow; color: blue; mso-highlight: yellow;">ReadSecurityDescriptor</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">FilterDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">FilterDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="background: yellow; color: blue; mso-highlight: yellow;">UserFilter</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="background: yellow; color: blue; mso-highlight: yellow;">UserContext</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">FilterDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameters</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Id</span>"<span style="color: blue;"> </span><span style="color: red;">Direction</span><span style="color: blue;">=</span>"<span style="color: blue;">In</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">IdTypeDescriptor</span>"<span style="color: blue;"> </span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;"> </span><span style="color: red;">IdentifierName</span><span style="color: blue;">=</span>"<span style="color: blue;">Identifier1</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">User</span>"<span style="color: blue;"> </span><span style="color: red;">Direction</span><span style="color: blue;">=</span>"<span style="color: blue;">In</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">CurrentUser</span>"<span style="color: blue;"> </span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;"> </span><span style="color: red;">AssociatedFilter</span><span style="color: blue;">=</span>"<span style="background: yellow; color: blue; mso-highlight: yellow;">UserFilter</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Acl</span>"<span style="color: blue;"> </span><span style="color: red;">Direction</span><span style="color: blue;">=</span>"<span style="color: blue;">Return</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">="<span style="background: yellow; mso-highlight: yellow;">MySecurityDescriptor</span></span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;"> </span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">System.Collections.Generic.IEnumerable`1[System.Byte]</span>"<span style="color: blue;"> </span><span style="color: red;">IsCollection</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">SecurityDescriptorByte</span>"<span style="color: blue;"> </span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">System.Byte</span>"<span style="color: blue;"> </span><span style="color: red;">IsCollection</span><span style="color: blue;">=</span>"<span style="color: blue;">false</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptors</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">TypeDescriptor</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameter</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Parameters</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstances</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstance</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;"> </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">Name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">ReadSecurityDescriptorInstance</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<b><span style="background: yellow; color: blue; mso-highlight: yellow;">BinarySecurityDescriptorAccessor</span></b>"<span style="color: blue;"> </span><span style="color: red;">ReturnParameterName</span><span style="color: blue;">=</span>"<span style="color: blue;">Acl</span>"<span style="color: blue;"> </span><span style="color: red;">ReturnTypeDescriptorPath</span><span style="color: blue;">=</span>"<span style="background: yellow; color: blue; mso-highlight: yellow;">MySecurityDescriptor</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="background: yellow; mso-highlight: yellow;">&lt;</span></span><span style="font-family: consolas; background: yellow; color: #a31515; font-size: 9.5pt; mso-highlight: yellow;">Property</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;"> </span><span style="font-family: consolas; background: yellow; color: red; font-size: 9.5pt; mso-highlight: yellow;">Name</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">=</span><span style="font-family: consolas; background: yellow; font-size: 9.5pt; mso-highlight: yellow;">"<span style="color: blue;">WindowsSecurityDescriptorField</span>"<span style="color: blue;"> </span><span style="color: red;">Type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.String</span>"<span style="color: blue;">&gt;</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; background: yellow; font-size: 9.5pt; mso-highlight: yellow;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MySecurityDescriptor</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; background: yellow; color: #a31515; font-size: 9.5pt; mso-highlight: yellow;">Property</span><span style="font-family: consolas; background: yellow; color: blue; font-size: 9.5pt; mso-highlight: yellow;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstance</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">MethodInstances</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span><span style="font-family: consolas; font-size: 9.5pt;"></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&lt;/</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">Method</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">&gt;</span></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-size: small;" size="3"><span style="color: #1f497d;">Now once the Method is defined in BDCM, You need to implement the code in the .NET assembly for the </span><b><span style="font-family: consolas; background: yellow; color: #1f497d; font-size: 9.5pt; mso-highlight: yellow;">BinarySecurityDescriptorAccessor</span></b><b><span style="font-family: consolas; color: #1f497d; font-size: 9.5pt;"> </span></b><span style="color: #1f497d;">method instance. In this case, You need to create a ACL based on the policy provided in the XML file, The following code shows the complete implementation of this method in .NET assembly connector</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: blue;">byte</span>[] <span style="background: yellow; mso-highlight: yellow;">ReadSecurityDescriptor</span>(<span style="color: blue;">string</span> Id, <span style="color: blue;">string</span>User)</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">Uri</span> uri = <span style="color: blue;">new</span> <span style="color: #2b91af;">Uri</span>(<span style="color: #a31515;">"C:/BCSSecurity/policy.xml"</span>);</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">XDocument</span> policyfile = <span style="color: #2b91af;">XDocument</span>.Load(uri.AbsoluteUri);</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">NTAccount</span> oAcc = <span style="color: blue;">new</span> <span style="color: #2b91af;">NTAccount</span>(User.Split(<span style="color: #a31515;">'\\'</span>)[0], User.Split(<span style="color: #a31515;">'\\'</span>)[1]);</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">SecurityIdentifier</span> workerSid = (<span style="color: #2b91af;">SecurityIdentifier</span>)oAcc.Translate(<span style="color: blue;">typeof</span>(<span style="color: #2b91af;">SecurityIdentifier</span>)); <span style="color: green;">// Creates a Security Identifier for the currently logged on user who is crawling ; DefaultContentAccess account</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">CommonSecurityDescriptor</span> csd = <span style="color: blue;">new</span> <span style="color: #2b91af;">CommonSecurityDescriptor</span>(<span style="color: blue;">false</span>, <span style="color: blue;">false</span>, <span style="color: #2b91af;">ControlFlags</span>.None, workerSid, <span style="color: blue;">null</span>, <span style="color: blue;">null</span>,<span style="color: blue;">null</span>); <span style="color: green;">// Creates a Security descriptor to build the ACL by keeping the Crawling user as Owner (SecurityIdentifier) of the ACL</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: green;">//populating the Common Security descriptor (ACL) with the set of user to whom to GRANT the access by reading it from the policy file</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> grant = <span style="color: blue;">from</span> account <span style="color: blue;">in</span> policyfile.Descendants(<span style="color: #a31515;">"Grant"</span>).First().Descendants(<span style="color: #a31515;">"Account"</span>) <span style="color: blue;">select</span>account;</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">foreach</span> (<span style="color: blue;">var</span> acc <span style="color: blue;">in</span>grant)</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">NTAccount</span> ntAcc = <span style="color: blue;">new</span> <span style="color: #2b91af;">NTAccount</span>(acc.Attribute(<span style="color: #a31515;">"Name"</span>).Value.Split(<span style="color: #a31515;">'\\'</span>)[0], acc.Attribute(<span style="color: #a31515;">"Name"</span>).Value.Split(<span style="color: #a31515;">'\\'</span>)[1]);</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">SecurityIdentifier</span> Sid = (<span style="color: #2b91af;">SecurityIdentifier</span>)ntAcc.Translate(<span style="color: blue;">typeof</span>(<span style="color: #2b91af;">SecurityIdentifier</span>));</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; csd.DiscretionaryAcl.AddAccess(<span style="color: #2b91af;">AccessControlType</span>.Allow,Sid, <span style="color: blue;">unchecked</span>((<span style="color: blue;">int</span>)0xffffffffL), <span style="color: #2b91af;">InheritanceFlags</span>.None, <span style="color: #2b91af;">PropagationFlags</span>.None); <span style="color: green;">// Add the user read from policy file to the Coomon Security Desciptor object with Allow Access Control type</span></span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: green;">//populating the Common Security descriptor (ACL) with the set of user to whom to DENY the access by reading it from the policy file</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> deny = <span style="color: blue;">from</span> account <span style="color: blue;">in</span> policyfile.Descendants(<span style="color: #a31515;">"Deny"</span>).First().Descendants(<span style="color: #a31515;">"Account"</span>) <span style="color: blue;">select</span>account;</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">foreach</span> (<span style="color: blue;">var</span> acc <span style="color: blue;">in</span>deny)</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">NTAccount</span> ntAcc = <span style="color: blue;">new</span> <span style="color: #2b91af;">NTAccount</span>(acc.Attribute(<span style="color: #a31515;">"Name"</span>).Value.Split(<span style="color: #a31515;">'\\'</span>)[0], acc.Attribute(<span style="color: #a31515;">"Name"</span>).Value.Split(<span style="color: #a31515;">'\\'</span>)[1]);</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #2b91af;">SecurityIdentifier</span> Sid = (<span style="color: #2b91af;">SecurityIdentifier</span>)ntAcc.Translate(<span style="color: blue;">typeof</span>(<span style="color: #2b91af;">SecurityIdentifier</span>));</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; csd.DiscretionaryAcl.AddAccess(<span style="color: #2b91af;">AccessControlType</span>.Deny, Sid, <span style="color: blue;">unchecked</span>((<span style="color: blue;">int</span>)0xffffffffL), <span style="color: #2b91af;">InheritanceFlags</span>.None, <span style="color: #2b91af;">PropagationFlags</span>.None); <span style="color: green;">// Add the user read from policy file to the Coomon Security Desciptor object with Allow Access Control type</span></span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">byte</span>[] secDesc = <span style="color: blue;">new</span> <span style="color: blue;">byte</span>[csd.BinaryLength];</span></p>
<p></p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; csd.GetBinaryForm(secDesc, 0);</span></p>
<p></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span>secDesc;</span></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-family: consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3"><span style="text-decoration: underline;">Code flow for Creation of ACL in the above method implementation :</span></span></span></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><b><span style="color: #1f497d;"><span style="font-size: small;" size="3">The first thing happens in the BinarySecurityDescriptorAccessor method implementation is that the XML policy file is loaded and a new &ldquo;NTAccount&rdquo; object is created based on the identity of the current user. During Crawl time, The identity of the user will be the account used to crawl the external system content source (DefaultContentAccess account). The implementation code will make this account as the owner of the security descriptor for the entity instance. It will do this by creating a &ldquo;SecurityIdentifier&rdquo; and setting that as the owner for the CommonSecurityDescriptor. The CommonSecurityDescriptor is the object that will hold the Access Control List.</span></span></b></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><b><span style="color: #1f497d;"><span style="font-size: small;" size="3">The next step is to run a LINQ query on the policy file loaded and return all the account that will be granted access (If you have stored the set of user permission information in external system as afield in the table then you can retrieve it from the back end, In the sample its retrieved from the policy file). For each of this account an entry is made in the access control list to grant access. Similarly, entries are made in the access control list to deny access for designated accounts in the policy file. Finally the CommonSecurityDescriptor object is transformed into a byte array and returned from the Method.</span></span></b></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><b><span style="color: #1f497d;"><span style="font-size: small;" size="3">Once the method implementation is complete along with the &ldquo;Finder&rdquo; method instance with Root Finder Property or &ldquo;IDEnumerator&rdquo; Method instance, the .NET assembly connector may be deployed to SharePoint. From here it can be used to as a Content Source in the Search. The Finder or IDEnumerator method instance (In MOSS 2007, IDEnumerator method instance is mandatory for crawling, But in SPS 2010 either you can have IDEnumerator method instance or you can have a Finder method instance with Root Finder property description) will take care of Crawling and the <i>BinarySecurityDescriptorAccessor</i>method instance will take care of Item level security trimming during crawling.</span></span></b></p>
<p></p>
<p><span style="font-size: small;" size="3">&nbsp;</span></p>
<p class="MsoNormal"><span style="color: #1f497d;"><span style="font-size: small;" size="3">You can find the complete Project in the attachment.</span></span></p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/33/10/15/BDCSecurity.rar" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-33-10-15/BDCSecurity.rar">BDCSecurity.rar</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Customizing the Navigation controls of MOBILE item form pages for a specific list.</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/customizing-the-navigation-controls-of-mobile-item-form-pages-for-a-specific-list</link>
      <pubDate>Fri, 12 Mar 2010 14:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2010/03/12/customizing-the-navigation-controls-of-mobile-item-form-pages-for-a-specific-list/</guid>
      <description><![CDATA[The Item form pages (New, Disp and Edit) for mobile views are physically available under the...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal><SPAN style="COLOR: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2">The Item form pages (New, Disp and Edit) for mobile views are physically available under the Layouts/Mobile folder. I have been seeing that lot of people are trying to customize the item form pages of Mobile view to include more links to the item form pages.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2">You can find the following MSDN article which walk through you on adding a new link to the mobile view page <A title=https://msdn.microsoft.com/en-us/library/ms457259.aspx href="https://msdn.microsoft.com/en-us/library/ms457259.aspx" mce_href="https://msdn.microsoft.com/en-us/library/ms457259.aspx">https://msdn.microsoft.com/en-us/library/ms457259.aspx</A>&nbsp;</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2">The above given article will give you a clear idea about customizing the Mobile view pages and the role played by “MobileDefaultTemplates.ascx” control. In this blog post i am going to walk through about customizing the mobile ITEM FORM PAGES to customize their navigation control. Consider my requirement is to customize the navigation of Save, Cancel and Home links to different pages and would like to wipe out the “Go back to List” link.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"></SPAN><SPAN style="COLOR: #1f497d; mso-bidi-font-family: calibri; mso-fareast-font-family: calibri"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;</SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d">The rendering controls for the Mobile item form pages are rendered through rendering templates registered in the OOB “MobileDefaultTemplates.ascx” control. There are several rendering templates available in the “MobileDefaultTemplates.ascx” to render the View, Title, Content and Navigation of the item form pages. 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d">Here our requirement is to customize the behavior of “Save”, “Cancel” and “Home” links which are navigation control for the item form pages. These controls are rendered through the Navigation rendering template in the “MobileDefaultTemplates.ascx”. Following are the rendering template for Navigation controls in New, Edit and Disp forms. 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d"></P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d">New Form : 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="Mobile_Default_NewForm_Navigation"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileComponent</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">TemplateName</SPAN><SPAN style="COLOR: blue">="Mobile_Default_EditForm_Navigation"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoListParagraph><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d"></P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d">Edit Form : 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="Mobile_Default_EditForm_Navigation"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileFormDigest</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="BACKGROUND: yellow; COLOR: maroon; mso-highlight: yellow">SPMobileSaveNavigation</SPAN>&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_button_save_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">BreakAfter</SPAN><SPAN style="COLOR: blue">="false"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="BACKGROUND: yellow; COLOR: maroon; mso-highlight: yellow">SPMobileCancelNavigation</SPAN>&nbsp;&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_button_cancel_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="BACKGROUND: yellow; COLOR: maroon; mso-highlight: yellow">SPMobileListViewNavigation</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_backlist_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="#"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="BACKGROUND: yellow; COLOR: maroon; mso-highlight: yellow">SPMobileHomePageNavigation</SPAN>&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_home_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="0"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"></P></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="COLOR: #1f497d">Disp Form: 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="Mobile_Default_DispForm_Navigation"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileEditFormNavigation</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_edit_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN>&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="8"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileListViewNavigation</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_backlist_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="#"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileHomePageNavigation</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_home_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN>&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="0"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"></P></SPAN>
<P class=MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="COLOR: #1f497d">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With this said now we had a clear understanding that the Navigation controls in mobile item form pages are rendered through rendering template and we have to customize this rendering template to render your own custom control to implement the requirement. We cannot make changes to the OOB MobileDefaultTemplates.ascx which is not supported. So you have to override the templates through a custom MobileDefaultTemplates.ascx. But overriding with the same rendering template ID will apply the changes globally but you require the customization specific to a list instance. We cannot directly apply the rendering templates to a specific list instance but we can apply it to the specific lists getting created from a specific list template. So the first step is to create your custom list template and install and activate it in the SharePoint farm. 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d"></P></SPAN>
<P class=MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="COLOR: #1f497d; mso-bidi-font-family: calibri; mso-fareast-font-family: calibri"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'"><FONT face=Verdana>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>&nbsp;</SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d">Create a custom list template based on a OOB template by copying the OOB list definition feature. In this sample, I have created a custom List template based on the OOB “CustomList” definition which you can find under 12/Template/Features folder. Copy the OOB “CustomList” folder and paste it under the features folder with custom name. Change the feature ID, List Template type and install and activate the feature. In the sample here for further walkthrough consider List template type as “1786” (You can provide any template type rather than OOB template Type ID’s). [Refer the attachment for the custom list template feature]</SPAN></P>
<P class=MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="COLOR: #1f497d">&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #1f497d; mso-bidi-font-family: calibri; mso-fareast-font-family: calibri"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d">So now the custom list template is available to create the list instances. Now let’s look into customizing the rendering template for your requirement. 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d">You can easily find from the above rendering template that each navigation control is rendered through the class from Microsoft.SharePoint.MobileControls namespace. you have to create a class inheriting from the specific class and need to override the methods to implement your requirement for Save, Cancel and Home navigation respectively. Following are the classes i created for custom SAVE, CANCEL and HOME navigation control respectively from SPMobileSaveNavigation, SPMobileCancelNavigation and SPMobileHomeNavigation. I just wanted to Navigate to “hhstart.html” which i placed under the “Layouts/Mobile” folder when clicking on Home and to “quit.html” while clicking on Cancel and for Save button i would like to save the item and be on the same page. It’s just a sample :) </SPAN></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">namespace</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"> MobileControlForNew 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: teal">MymobileHome</SPAN>:<SPAN style="COLOR: teal">SPMobileHomePageNavigation</SPAN> // HOME 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">string</SPAN> PageFileName 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">get 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: maroon">"hhstart.html"</SPAN>; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"></SPAN>
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: teal">MymobileSave</SPAN> : <SPAN style="COLOR: teal">SPMobileSaveNavigation // SAVE 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">void</SPAN> OnClick(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: teal">EventArgs</SPAN> e) 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">//base.OnClick(sender, e); 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">base</SPAN>.MobilePage.Validate(); 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (<SPAN style="COLOR: blue">base</SPAN>.MobilePage.IsValid) 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">this</SPAN>.SaveItem(<SPAN style="COLOR: blue">this</SPAN>.MobileContext); 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">this</SPAN>.Redirect(); 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">void</SPAN> Redirect() 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">//base.Redirect(); 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">this</SPAN>.Context.Response.RedirectLocation = <SPAN style="COLOR: blue">this</SPAN>.RedirectUrl; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">string</SPAN> RedirectUrl 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">get 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">base</SPAN>.RedirectUrl; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">set 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">base</SPAN>.RedirectUrl = <SPAN style="COLOR: blue">this</SPAN>.MobileContext.CurrentFolderUrl; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"></P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: teal">MymobileCancel</SPAN> : <SPAN style="COLOR: teal">SPMobileCancelNavigation&nbsp; // CANCEL 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">override</SPAN> <SPAN style="COLOR: blue">string</SPAN> RedirectUrl 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">get 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">base</SPAN>.RedirectUrl = <SPAN style="COLOR: blue">this</SPAN>.Web.Url + <SPAN style="COLOR: maroon">"/_layouts/mobile/quit.html"</SPAN>; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">set 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{ 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">base</SPAN>.RedirectUrl = <SPAN style="COLOR: blue">value</SPAN>; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">} 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal><SPAN style="COLOR: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"></P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d">
<P>Compile the project and place the DLL into GAC. [Find the attachment for the reference of the class library project]</P></SPAN>
<P class=MsoListParagraph><SPAN style="COLOR: #1f497d"></P></SPAN>
<P class=MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="COLOR: #1f497d; mso-bidi-font-family: calibri; mso-fareast-font-family: calibri"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'"><FONT face=Verdana>&nbsp;&nbsp;&nbsp;&nbsp; </FONT>&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d">Now with the custom control ready, you need to render this control for your custom list templates mobile item form pages. Create a custom “MobileDefaultTemplates.ascx” control and place it under the 12/Template/Control Templates folder. We have to render the Navigation rendering template for New, Edit and Disp form along with the custom controls and different ID. The ID has a format to be followed i.e. Mobile_&lt;List template type&gt;_&lt;Form Name&gt;_Navigation ( This format is same for other templates like View, Contents etc.). Following is the entry for the custom MobileDefaultTemplates.ascx 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; BACKGROUND: yellow; FONT-FAMILY: 'Courier New'; mso-highlight: yellow">&lt;%</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">@</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: maroon">Control</SPAN> <SPAN style="COLOR: red">Language</SPAN><SPAN style="COLOR: blue">="C#"</SPAN>&nbsp;&nbsp; <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN><SPAN style="COLOR: blue">@</SPAN> <SPAN style="COLOR: maroon">Assembly</SPAN> <SPAN style="COLOR: red">Name</SPAN><SPAN style="COLOR: blue">="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN><SPAN style="COLOR: blue">@</SPAN> <SPAN style="COLOR: maroon">Register</SPAN> <SPAN style="COLOR: red">TagPrefix</SPAN><SPAN style="COLOR: blue">="mobile"</SPAN> <SPAN style="COLOR: red">Namespace</SPAN><SPAN style="COLOR: blue">="System.Web.UI.MobileControls"</SPAN> <SPAN style="COLOR: red">Assembly</SPAN><SPAN style="COLOR: blue">="System.Web.Mobile, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN><SPAN style="COLOR: blue">@</SPAN> <SPAN style="COLOR: maroon">Register</SPAN> <SPAN style="COLOR: red">TagPrefix</SPAN><SPAN style="COLOR: blue">="SharePoint"</SPAN> <SPAN style="COLOR: red">Namespace</SPAN><SPAN style="COLOR: blue">="Microsoft.SharePoint.WebControls"</SPAN> <SPAN style="COLOR: red">Assembly</SPAN><SPAN style="COLOR: blue">="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN><SPAN style="COLOR: blue">@</SPAN> <SPAN style="COLOR: maroon">Register</SPAN> <SPAN style="COLOR: red">TagPrefix</SPAN><SPAN style="COLOR: blue">="SPMobile"</SPAN> <SPAN style="COLOR: red">Namespace</SPAN><SPAN style="COLOR: blue">="Microsoft.SharePoint.MobileControls"</SPAN> <SPAN style="COLOR: red">Assembly</SPAN><SPAN style="COLOR: blue">="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; BACKGROUND: yellow; FONT-FAMILY: 'Courier New'; mso-highlight: yellow">&lt;%</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">@</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: maroon">Assembly</SPAN> <SPAN style="COLOR: red">Name</SPAN><SPAN style="COLOR: blue">="MobileControlForNew, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a98d75670103c16e"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; BACKGROUND: yellow; FONT-FAMILY: 'Courier New'; mso-highlight: yellow">&lt;%</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">@</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: maroon">Register</SPAN> <SPAN style="COLOR: red">TagPrefix</SPAN><SPAN style="COLOR: blue">="Mymobile"</SPAN> <SPAN style="COLOR: red">Namespace</SPAN><SPAN style="COLOR: blue">="MobileControlForNew"</SPAN> <SPAN style="COLOR: red">Assembly</SPAN><SPAN style="COLOR: blue">="MobileControlForNew, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a98d75670103c16e"</SPAN> <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN> 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></P></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="<SPAN style="BACKGROUND: lime; mso-highlight: lime">Mobile_1786_NewForm_Navigation</SPAN>"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileComponent</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">TemplateName</SPAN><SPAN style="COLOR: blue">="Mobile_1786_EditForm_Navigation"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="<SPAN style="BACKGROUND: lime; mso-highlight: lime">Mobile_1786_EditForm_Navigation</SPAN>"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileFormDigest</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="SPMobileFormDigest1"</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Mymobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">MymobileSave</SPAN>&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_button_save_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">BreakAfter</SPAN><SPAN style="COLOR: blue">="false"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Mymobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">MymobileCancel</SPAN>&nbsp;&nbsp; <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_button_cancel_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Mymobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">MymobileHome </SPAN><SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_home_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="0"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">ID</SPAN><SPAN style="COLOR: blue">="<SPAN style="BACKGROUND: lime; mso-highlight: lime">Mobile_1786_DispForm_Navigation</SPAN>"&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">SPMobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">SPMobileEditFormNavigation</SPAN> <SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_edit_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN>&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="8"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: maroon">Mymobile</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: maroon">MymobileHome </SPAN><SPAN style="COLOR: red">RunAt</SPAN><SPAN style="COLOR: blue">="Server"</SPAN> <SPAN style="COLOR: red">Text</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;%</SPAN>$Resources:wss, mobile_navigation_home_text<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%&gt;</SPAN><SPAN style="COLOR: blue">"</SPAN> <SPAN style="COLOR: red">AccessKey</SPAN><SPAN style="COLOR: blue">="0"</SPAN> <SPAN style="COLOR: blue">/&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: maroon">Template</SPAN><SPAN style="COLOR: blue">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></SPAN>
<P class=MsoListParagraph style="MARGIN-LEFT: 0.75in"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&lt;/</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">SharePoint</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">:</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Courier New'">RenderingTemplate</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&gt;</SPAN> 
<P mce_keep="true">&nbsp;</P>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #1f497d; mso-bidi-font-family: calibri; mso-fareast-font-family: calibri"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;</SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d">Save the custom MobileDefaultTemplates.ascx and do an IISRESET. Now create a list instance based on your custom list template and check the mobile item form pages for your requirement. This changes will be only available to the list created from this list template. 
<P mce_keep="true">&nbsp;</P></SPAN>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></P></SPAN>
<BLOCKQUOTE>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAPPY CUSTOMIZING </P></SPAN></BLOCKQUOTE>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/09/97/78/13/LeeMobileItems.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-09-97-78-13/LeeMobileItems.zip">LeeMobileItems.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Need a Thumbnail Field in the Document library for the uploaded picture… Then read this post.</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/need-a-thumbnail-field-in-the-document-library-for-the-uploaded-picture-then-read-this-post</link>
      <pubDate>Fri, 05 Mar 2010 16:12:46 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2010/03/05/need-a-thumbnail-field-in-the-document-library-for-the-uploaded-picture-then-read-this-post/</guid>
      <description><![CDATA[One of my customer came up with a requirement that he would like to add the “Thumbnail” computed...]]></description>
      <content:encoded><![CDATA[<p></p>  <p class="MsoNormal"><span style="color: #1f497d">One of my customer came up with a requirement that he would like to add the “Thumbnail” computed field to other lists as well, where it is by default only available with picture library. Customer checked the site column gallery for “Thumbnail” field but he couldn’t able to find it to add it to the list. Now his requirement is to know how to add the “Thumbnail” field to other list.     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">Before getting into the work around in detail, First I would like to give some insight about Thumbnail field and then the description of the solution.     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">We are already aware that “Thumbnail” is the registered COMPUTED site column and the reason why they are available in the “Picture” library is because the “thumbnail” field has been included in the “Picture Library” schema definition. So whenever you creates a picture library from OOB “Picture Library” template then the thumbnail field gets created along with the picture library instance. The reason why the Thumbnail field is not available in the site column is because it is placed under the Hidden group and it’s hidden by default. With this said and explained, now we already knows that “Thumbnail” is a computed field and hence it has several other field references defined inside it. They are “ ImageWidth”,”ImageHeight”,”FSObjType”,”EncodedAbsThumbnailUrl” and “Description”. So if you want to include the “Thumbnail” field into a list then you need to ensure that these field references should be already existing in the list. So in short, before adding the Thumbnail field one need to add these fields to the list else the Thumbnail field won’t work and will throw an error.      <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">Again if you would like to add these fields individually from site column gallery, None of these fields which used as field references for thumbnail field will be available in the Site column gallery to add. If you are thinking about making these hidden fields to visible through SharePoint API’s using script then there is another hurdle that you can’t add “EncodedAbsThumbnailUrl” to other lists as it is very specific to picture library and it holds the thumbnail images in a web folder which will be only available with picture library. So only adding these fields individually to the list and then adding OOB thumbnail field will not help to achieve your requirement.      <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">So the work around comes in the following format, From SharePoint architectural point of view instead of adding the individual field references required for “Thumbnail” field you can add the OOB “Picture” content type to the list thus we can get the required field references for “Thumbnail” field. One can think that adding the “Picture” content type would be sufficient enough as it contains all the required field and as well the “Thumbnail” field. But as I already told, the “EncodedAbsThumbnailUrl”,”Thumbnail” and some other computed fields in the picture content type are very specific to Picture library and they won’t be included to other lists. But it’s mandatory to add the “Picture” content type to get the picture schema and some other supported fields.     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">With the so far details, we understand that to add the “thumbnail” computed field to the list we need following 5 field references to be included first in the list :     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="text-indent: -0.25in; mso-list: l0 level1 lfo1"><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">&#160;&#160;&#160;&#160;&#160;&#160; 1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span style="color: #1f497d">“ImageWidth” – <b>Gets included when you add the picture content type</b>      <p></p>   </span></p>  <p class="MsoListParagraph"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="text-indent: -0.25in; mso-list: l0 level1 lfo1"><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">&#160;&#160;&#160;&#160;&#160;&#160; 2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span style="color: #1f497d">“ImageHeight”&#160; - <b>Gets included when you add the picture content type</b>      <p></p>   </span></p>  <p class="MsoListParagraph"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="text-indent: -0.25in; mso-list: l0 level1 lfo1"><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">&#160;&#160;&#160;&#160;&#160;&#160; 3.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span style="color: #1f497d">“FSObjType” – <b>This field is available in the BASE TYPE and will be available to all the lists&#160; so no need to include.</b>      <p></p>   </span></p>  <p class="MsoListParagraph"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="text-indent: -0.25in; mso-list: l0 level1 lfo1"><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">&#160;&#160;&#160;&#160;&#160;&#160; 4.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span style="color: #1f497d">“EncodedAbsThumbnailUrl” – <b>This field is very specific to Picture library and will not be included to other list just by adding the Picture content type</b>.      <p></p>   </span></p>  <p class="MsoListParagraph"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="text-indent: -0.25in; mso-list: l0 level1 lfo1"><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">&#160;&#160;&#160;&#160;&#160;&#160; 5.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span style="color: #1f497d">“Description” – <b>Gets included when you add the picture content type</b>.      <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">So now we have been without “EncodedAbsThumbnailUrl” field which is very important to compute the “Thumbnail” field as it holds the “URL” of the image. So we need to find a way to render the thumbnail image… We have a Global field called “EncodedAbsUrl” which is available as a BASE TYPE field and will be included to all the lists by default. We can use this field instead of “EncodedAbsThumbnailUrl” which is only specific to picture library.      <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><b><span style="color: #1f497d">So we need to create a “Thumbnail” field in the list which is going to be computed from “ ImageWidth”,”ImageHeight”,”FSObjType”,”EncodedAbsUrl” and “Description”. If you add “Picture” content type to the list then “ImageWidth”, “ImageHeight” and “Description” will be available. “FSObjType” and “ EncodedAbsUrl” fields will be available to all the lists by default as they are coming from Base type.        <p></p>     </span></b></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><b><span style="color: #1f497d">Now, how to create the “thumbnail” field in the list. We can’t simply include the OOB “Thumbnail” Site column through code as the OOB “Thumbnail” column is going to be computed using “EncodedAbsThumbnailUrl” which will not work except Picture library. So we need to define our “Thumbnail” field in such a way that it can be calculated using “EncodedAbsUrl”. Thus we can make use of “AddFieldAsXml” method of SPList object to create the Thumbnail field from the definition.       <p></p>     </span></b></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">Following are the steps for the work around :     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="margin-left: 0.75in; text-indent: -0.25in; mso-list: l1 level1 lfo2"><b><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">1.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b><span style="color: #1f497d">Enable the content type in the list and add the “Picture” content type to the list. Make the picture content type as default content type to the list, If you don’t want the picture content type as default content type then you can change it once you added the Thumbnail field to the list. (Note : The picture content type cannot be added to all the list types)       <p></p>     </span></b></p>  <p class="MsoListParagraph" style="margin-left: 0.75in"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="margin-left: 0.75in; text-indent: -0.25in; mso-list: l1 level1 lfo2"><b><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">2.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b><span style="color: #1f497d">Now define the “Thumbnail” field definition as follows (Note : The only change from the OOB Thumbnail Site column definition and the given definition is that we replaced the “EncodedAbsThumbnailUrl” with “EncodedAbsUrl” ). Create this field definition and save it as a .txt file.       <p></p>     </span></b></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Field</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">ID</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">{ac7bb138-02dc-40eb-b07a-84c15575b6e9}</span>&quot;<span style="color: blue"> </span><span style="color: red">ReadOnly</span><span style="color: blue">=</span>&quot;<span style="color: blue">TRUE</span>&quot;<span style="color: blue"> </span><span style="color: red">Type</span><span style="color: blue">=</span>&quot;<span style="color: blue">Computed</span>&quot;<span style="color: blue"> </span><span style="color: red">Name</span><span style="color: blue">=</span>&quot;<span style="color: blue">Thumbnail</span>&quot;<span style="color: blue"> </span><span style="color: red">ShowInNewForm</span><span style="color: blue">=</span>&quot;<span style="color: blue">FALSE</span>&quot;<span style="color: blue"> </span><span style="color: red">ShowInFileDlg</span><span style="color: blue">=</span>&quot;<span style="color: blue">FALSE</span>&quot;<span style="color: blue"> </span><span style="color: red">ShowInEditForm</span><span style="color: blue">=</span>&quot;<span style="color: blue">FALSE</span>&quot;<span style="color: blue"> </span><span style="color: red">DisplayName</span><span style="color: blue">=</span>&quot;<span style="color: blue">Thumbnail;</span>&quot;<span style="color: blue"> </span><span style="color: red">Sealed</span><span style="color: blue">=</span>&quot;<span style="color: blue">TRUE</span>&quot;<span style="color: blue"> </span><span style="color: red">Sortable</span><span style="color: blue">=</span>&quot;<span style="color: blue">FALSE</span>&quot;<span style="color: blue"> </span><span style="color: red">Filterable</span><span style="color: blue">=</span>&quot;<span style="color: blue">FALSE</span>&quot;<span style="color: blue"> </span><span style="color: red">SourceID</span><span style="color: blue">=</span>&quot;<span style="color: blue">https://schemas.microsoft.com/sharepoint/v3</span>&quot;<span style="color: blue"> </span><span style="color: red">StaticName</span><span style="color: blue">=</span>&quot;<span style="color: blue">Thumbnail</span>&quot;<span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRefs</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRef</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">ImageWidth</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRef</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">ImageHeight</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRef</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">FSObjType</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRef</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="background: yellow; color: blue; mso-highlight: yellow">EncodedAbsUrl</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRef</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">Description</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">FieldRefs</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">DisplayPattern</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">LookupColumn</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">FSObjType</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">0<span style="color: blue">&lt;/</span><span style="color: maroon">Expr2</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">LookupColumn</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">ImageWidth</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">LookupColumn</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">ImageWidth</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">0<span style="color: blue">&lt;/</span><span style="color: maroon">Expr2</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;&lt;![CDATA[</span><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&lt;a href=&quot;</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">]]&gt;&lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">URL</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Cmd</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">Display</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;&lt;![CDATA[</span><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&quot;&gt;&lt;img border=0 ALT=&quot;</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">]]&gt;&lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Column</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">Description</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr1</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Expr2</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;&lt;![CDATA[</span><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">$Resources:core,Thumbnail;</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">]]&gt;&lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Column</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="color: blue">Description</span>&quot;<span style="color: blue"> </span><span style="color: red">HTMLEncode</span><span style="color: blue">=</span>&quot;<span style="color: blue">TRUE</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;&lt;![CDATA[</span><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&quot; SRC=&quot;</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">]]&gt;&lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Field</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;"> </span><span style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;">Name</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&quot;<span style="background: yellow; color: blue; mso-highlight: yellow">EncodedAbsUrl</span>&quot;<span style="color: blue"> /&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;![CDATA[</span><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/a&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: gray; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">]]&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">HTML</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Else</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Then</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">IfEqual</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">DisplayPattern</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.75in"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;">Field</span><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">&gt;</span><span style="color: #1f497d">     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="margin-left: 0.75in; text-indent: -0.25in; mso-list: l1 level1 lfo2"><b><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">3.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b><span style="color: #1f497d">Create a Visual Studio Console or Windows application and compile the following code and execute it to add the “Thumbnail” field defined in the above step in the list.       <p></p>     </span></b></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;">using</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;"> (<span style="color: teal">SPSite</span> osite = <span style="color: blue">new</span> <span style="color: teal">SPSite</span>(<span style="color: maroon">&quot;URL of your SharePoint Site”</span>)      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">using</span> (<span style="color: teal">SPWeb</span> oweb = osite.OpenWeb())      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: teal">SPList</span> olist = oweb.Lists[<span style="color: maroon">&quot;YourListName&quot;</span>];      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: teal">StreamReader</span> rdr = <span style="color: blue">new</span> <span style="color: teal">StreamReader</span>(<span style="color: maroon">&quot;Definition text file path which has the field definition&quot;</span>);      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">string</span> fld = rdr.ReadToEnd();      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; olist.Fields.AddFieldAsXml(fld, <span style="color: blue">true</span>, <span style="color: teal">SPAddFieldOptions</span>.AddToDefaultContentType);      <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; olist.Update();     <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.75in"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</span><span style="color: #1f497d">     <p></p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoListParagraph" style="margin-left: 0.75in; text-indent: -0.25in; mso-list: l1 level1 lfo2"><b><span style="color: #1f497d; mso-fareast-font-family: calibri; mso-bidi-font-family: calibri"><span style="mso-list: ignore">4.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span></b><b><span style="color: #1f497d">Now upload a picture using “Picture” content type in the list and you can find the Thumbnail rendered in the view.        <p></p>     </span></b></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">It’s SharePoint’s OOB by design behavior that the “Thumbnail” should be available only to the picture library and it makes sense too. So the work around provided is a sample steps to achieve the requirement of bringing the thumbnail field to other document library when the picture content type is enabled with it. </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span style="color: #1f497d">     <p></p>   </span></p>  <blockquote>   <p class="MsoNormal"><span style="color: #1f497d">       <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>&#160; HAPPY CUSTOMIZING :)</strong>&#160;</p>     </span></p></blockquote>]]></content:encoded>
    </item>
    <item>
      <title>Programmatically creating a field (column) from the Custom field type in WSS 3.0 – MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/programmatically-creating-a-field-column-from-the-custom-field-type-in-wss-3-0-moss</link>
      <pubDate>Fri, 04 Dec 2009 11:09:18 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2009/12/04/programmatically-creating-a-field-column-from-the-custom-field-type-in-wss-3-0-moss/</guid>
      <description><![CDATA[Many of you might have programmatically created the fields in the list or Site (Site Columns) using...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">Many of you might have programmatically created the fields in the list or Site (Site Columns) using the SharePoint object model. As long as you are creating the field based on the OOB field types then it’s just a cake walk like follows : (The code snippet shows the sample of Windows Application)     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: teal; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">SPSite</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> oSite = <span style="color: blue">new</span> <span style="color: teal">SPSite</span>(textBox1.Text);      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: teal">SPWeb</span> oWeb = oSite.OpenWeb();      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: teal">SPList</span> oList = oWeb.Lists[textBox3.Text];      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: green">// Adding the Custom field to the List. Here the OOB SPFieldText has been selected as the “FieldType” </span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">string</span> OfieldName = oList.Fields.Add(<span style="color: maroon">&quot;ProgramField&quot;</span>,<span style="background: aqua; color: teal; mso-highlight: aqua">SPFieldType</span><span style="background: aqua; mso-highlight: aqua">.Text</span>,<span style="color: blue">false</span>); <span style="color: green">// There are three overloaded methods available on adding the field</span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>oList.Update();      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>oWeb.Update();      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: green">// End of adding field to the List       <p></p>     </span></span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: green; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: green; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>// Adding the Custom Field to the Web as Site Column. Here the OOB SPFieldText has been selected as the “FieldType”      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: green; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">string</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> OSiteColumnName = oWeb.Fields.Add(<span style="color: maroon">&quot;ProgramSiteColumn&quot;</span>, <span style="background: aqua; color: teal; mso-highlight: aqua">SPFieldType</span><span style="background: aqua; mso-highlight: aqua">.Text</span>, <span style="color: blue">false</span>);      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>oWeb.Update();      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: green">// End of adding field to the Site       <p></p>     </span></span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: green; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">Pretty Easy !! </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">Now consider that you have created a custom field type called “SPCustomFieldText” by inheriting the OOB “SPFieldText”. You have successfully registered it as a Custom Field type though the “FldTypes*.xml” file. You can find the <a href="https://msdn.microsoft.com/en-us/library/bb861799.aspx">article here</a> that how can you create and register your custom field type in the SharePoint.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">So the custom field type is successfully created and register in your SharePoint and now you want to create a field programmatically based on the custom field type using the above code snippet.     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="tab-stops: 255.0pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">BOOOOOM !!! <span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">Yes, the <b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u>“SPFieldType” enumerator doesn’t consist your Custom field type name</u></i></b>, It only consists the OOB field type name. UFFF !! So you cannot use the above shown code snippet to create fields from the custom field type.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">Just a few glance in the SDK and hurray I found it. Yes, SharePoint provides another way (method) to create the fields using the XML format </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: wingdings; mso-themecolor: text2; mso-ansi-language: en; mso-ascii-font-family: verdana; mso-hansi-font-family: verdana; mso-char-type: symbol; mso-symbol-font-family: wingdings"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings">J</span></span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en"> where you can specify your custom field type name without using the SPFieldType enumerator.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">The following code snippet shows that how to create fields from the custom field type using the <b style="mso-bidi-font-weight: normal">“AddFieldAsXml()”</b> method. <b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u>The type and the name of the field type should be the name you registered in the custom “Fldtypes*.xml” file</u></i></b>.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en; mso-no-proof: yes">For your conveneint I have pasted the partial code snippet of the “FldTypes*.xml” file where you can find the entry of the Typename of your custom field type</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-ansi-language: en; mso-no-proof: yes">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="mso-ansi-language: en; mso-no-proof: yes">&#160;</span><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&lt;?</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">xml</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">version</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">1.0</span>&quot;<span style="color: blue"> </span><span style="color: red">encoding</span><span style="color: blue">=</span>&quot;<span style="color: blue">utf-8</span>&quot;<span style="color: blue">?&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">FieldTypes</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">FieldType</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Field</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Name</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">TypeName</span>&quot;<span style="color: blue">&gt;</span><span style="background: aqua; mso-highlight: aqua">CustomFieldType</span><span style="color: blue">&lt;/</span><span style="color: maroon">Field</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Field</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Name</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">ParentType</span>&quot;<span style="color: blue">&gt;</span>Text<span style="color: blue">&lt;/</span><span style="color: maroon">Field</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Field</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Name</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">TypeDisplayName</span>&quot;<span style="color: blue">&gt;</span>Cascading Drop Down List<span style="color: blue">&lt;/</span><span style="color: maroon">Field</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Field</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Name</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">TypeShortDescription</span>&quot;<span style="color: blue">&gt;</span>Cascading Drop Down List<span style="color: blue">&lt;/</span><span style="color: maroon">Field</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span lang="EN" style="font-size: 10pt; color: maroon; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Field</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">Name</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">UserCreatable</span>&quot;<span style="color: blue">&gt;</span>TRUE<span style="color: blue">&lt;/</span><span style="color: maroon">Field</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">.     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">(For example, for the OOB SPFieldText (Single line of text) the type and the field name is “Text” which was registered in the OOB Fldtypes.xml file)</span><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: teal; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">SPSite</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> oSite = <span style="color: blue">new</span> <span style="color: teal">SPSite</span>(textBox1.Text);      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: teal">SPWeb</span> oWeb = oSite.OpenWeb();      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: teal">SPList</span> oList = oWeb.Lists[textBox3.Text];      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background: aqua; color: blue; mso-highlight: aqua">string</span><span style="background: aqua; mso-highlight: aqua"> strFieldasXML = GetCreateFieldAsXml(<span style="color: teal">Guid</span>.NewGuid(), <span style="color: maroon">&quot;ProgrammaticField1&quot;</span>, <span style="color: blue">false</span>, <span style="color: maroon">&quot;</span></span><span style="background: gray; color: maroon; mso-highlight: gray">CustomFieldType</span><span style="background: aqua; color: maroon; mso-highlight: aqua">&quot;</span><span style="background: aqua; mso-highlight: aqua">, <span style="color: maroon">&quot;</span></span><span style="background: gray; color: maroon; mso-highlight: gray">CustomFieldType</span><span style="background: aqua; color: maroon; mso-highlight: aqua">&quot;</span><span style="background: aqua; mso-highlight: aqua">);</span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background: aqua; mso-highlight: aqua">oList.Fields.AddFieldAsXml(strFieldasXML);</span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>oList.Update();      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>oWeb.Update();</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">internal</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"> <span style="color: blue">string</span> GetCreateFieldAsXml(<span style="color: teal">Guid</span> oId, <span style="color: blue">string</span> strDisplayName, <span style="color: blue">bool</span> Required, <span style="color: blue">string</span> strFieldType, <span style="color: blue">string</span> strFieldName)      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: teal">XmlElement</span> element = <span style="color: blue">new</span> <span style="color: teal">XmlDocument</span>().CreateElement(<span style="color: maroon">&quot;Field&quot;</span>); <span style="color: green">// Creating the “Field” element for the Inner XML schema        <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>element.SetAttribute(<span style="color: maroon">&quot;ID&quot;</span>, oId.ToString()); <span style="color: green">// Setting the GUID of the field from value passed</span>       <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>element.SetAttribute(<span style="color: maroon">&quot;Type&quot;</span>, strFieldType); <span style="color: green">// Setting the Type name registered in the “Fldtypes*.xml” file</span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>element.SetAttribute(<span style="color: maroon">&quot;Name&quot;</span>, strFieldName); <span style="color: green">// Setting the Field name registered in the “Fldtypes*.xml” file</span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>element.SetAttribute(<span style="color: maroon">&quot;DisplayName&quot;</span>, strDisplayName); <span style="color: green">// Any unique Display Name<span style="mso-spacerun: yes">&#160; </span>        <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160; </span>element.SetAttribute(<span style="color: maroon">&quot;Required&quot;</span>, Required.ToString());       <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">return</span> element.OuterXml; <span style="color: green">// Returning the OuterXML to create the field as XML        <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>}      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">The only important thing you need to be carefull is on setting the “Type” and “Name” of the field type. Again I am iterating to make sure that you enter the “Type” and “Name” value as it is in the “FldTypes*.xml” file.</span><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal"><span style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2">Hope it helps someone and save their time </span><span style="font-size: 10pt; color: #1f497d; font-family: wingdings; mso-themecolor: text2; mso-ascii-font-family: verdana; mso-hansi-font-family: verdana; mso-char-type: symbol; mso-symbol-font-family: wingdings"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings">J</span></span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-themecolor: text2; mso-ansi-language: en">     <p></p>   </span></p>]]></content:encoded>
    </item>
    <item>
      <title>How to Customize (Add, Delete or Replace ) the "Site Action" menu items in Publishing site</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/how-to-customize-add-delete-or-replace-the-site-action-menu-items-in-publishing-site</link>
      <pubDate>Fri, 04 Dec 2009 11:05:04 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2009/12/04/how-to-customize-add-delete-or-replace-the-site-action-menu-items-in-publishing-site/</guid>
      <description><![CDATA[The &quot;Site Action&quot; menu items in the SharePoint are rendered by the...]]></description>
      <content:encoded><![CDATA[<p></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">The &quot;Site Action&quot; menu items in the SharePoint are rendered by the &quot;CustomAction&quot; feature framework. The story remains same untill the &quot;Publishing Infrastructure Feature&quot; is activated... When the publishing feature is activated and the site becomes SharePoint Publishing site then the datasource for the &quot;SiteAction&quot; menu items are rendered from the XML file which resides in 12 \ Template \ Layouts \ EditingMenu \ SiteAction.xml.     <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">You cannot modify this &quot;SiteAction.xml&quot; file as it is OOB file and as well changing this file will affect the behavior in the total farm. SharePoint provides you a way to override the menu items rendered through the &quot;SiteAction.xml&quot; file. You can find the &quot;Editing Menu&quot; folder in the Master page gallery of the SharePoint publishing site, In this folder you can find the &quot;CustomSiteAction.xml&quot; file without the entries.     <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">You can render your custom &quot;Console Node&quot; in this &quot;CustomSiteAction.xml&quot; to Add, Delete or replace the OOB console node links in the &quot;Site Action&quot; menu. Every menu item in the SiteAction.xml file has been rendered as a &quot;<strong>ConsoleNode</strong>&quot; class. Copy the references and the structure from the OOB &quot;SiteAction.xml&quot; and place it in the &quot;CustomSiteAction.xml&quot; file in the master page gallery. In the &quot;ConsoleNode&quot;, you need to mention the &quot;<strong>ConfigMenu</strong>&quot; property to mention whether you are adding or deleting or replacing the console node in the &quot;Site Action&quot; menu. The enumerator value for <strong>Adding</strong>, <strong>Deleting</strong> and <strong>replacing</strong> the node are <strong>Add</strong>,<strong>Delete</strong> and <strong>Replace</strong> respectively.      <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">Open the &quot;CustomSiteAction.xml&quot; file from the master page gallery. To add a console node you just need to add a &quot;ConsoleNode&quot; with the &quot;ConfigMenu=Add&quot;&#160; entry under the structure tag of the &quot;CustomSiteAction.xml&quot; file. To delete and replace the existing console node from the &quot;Site Action&quot; menu you need to mention another property called &quot;<strong>ChangedNodeID</strong>&quot; to mention the node id of the OOB file which need to be deleted or replaced.      <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">The following &quot;CustomSiteAction.xml&quot; file is the sample to replace the &quot;Create Page&quot; console node link with the custom &quot;Create Page&quot; link where the custom link will navigate you to the &quot;CustomCreatePage.aspx&quot;.     <p></p>   </span></p>  <p><span lang="EN" style="mso-ansi-language: en">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;      <br />&lt;Console&gt;      <br /> &lt;references&gt;      <br />&#160; &lt;reference TagPrefix=&quot;cms&quot; assembly=&quot;Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; namespace=&quot;Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions&quot; /&gt;       <br />&#160; &lt;/references&gt;      <br />&#160; &lt;structure&gt;      <br />&#160; &lt;ConsoleNode <strong>ConfigMenu=&quot;Replace&quot;</strong> <strong>ChangedNodeID=&quot;wsaCreatePage</strong>&quot; /&gt;       <br />&#160; &lt;ConsoleNode Action=&quot;cms:CreateNewPublishingPageAction&quot; DisplayText=&quot;cms,siteactions_createpage_displaytext&quot; Description=&quot;cms,siteactions_createpage_description&quot; HideIfDisabled=&quot;true&quot; UseResourceFile=&quot;true&quot; MenuGroupId=&quot;100&quot; Sequence=&quot;6000&quot; IsSiteRelative=&quot;true&quot; PermissionContext=&quot;CurrentList&quot; ImageUrl=&quot;/_layouts/images/crtpage.gif&quot; <strong>NavigateUrl=&quot;/_layouts/Customcreatepage.aspx&quot;</strong> <strong>ID=&quot;wsaCreatePage1&quot;</strong> /&gt;       <br />&#160; &lt;/structure&gt;      <br /> &lt;/Console&gt;      <p></p>   </span></p>  <p><strong><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">In the above example , &quot;ConfigeMenu&quot; intimates that this &quot;ConsoleNode&quot; is replacing the OOB node &quot;wsaCreatePage&quot; with the new node &quot;wsaCreatePage1&quot; which redirects to the customcreatepage.aspx to create new publishing pages. Apart from this there are several other properties which can be set through the XML file itself such as &quot;userRights&quot; for permission mask etc. You can find more details about other properties <a title="here" href="https://blogs.msdn.com/ecm/archive/2007/03/04/customize-the-page-editing-toolbar-in-moss-2007.aspx" mce_href="https://blogs.msdn.com/ecm/archive/2007/03/04/customize-the-page-editing-toolbar-in-moss-2007.aspx"><span style="color: #1f497d; mso-themecolor: text2">here</span></a>.</span></strong><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">     <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">Save the &quot;CustomSiteAction.xml&quot; file in the master page gallery. Do an IISRESET and you can find your custom &quot;Create Page&quot; link which replaced teh OOB link and will navigate you to the &quot;CustomCreatePage.aspx&quot; to create the publishing pages.     <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">You can refer more about the &quot;ConsoleNode&quot; and &quot;SiteAction.xml&quot; file in the following MSDN article.     <p></p>   </span></p>  <p><span lang="EN" style="mso-ansi-language: en"><a href="https://msdn.microsoft.com/en-us/library/aa674506.aspx">https://msdn.microsoft.com/en-us/library/aa674506.aspx</a>      <p></p>   </span></p>  <p><span lang="EN" style="color: #1f497d; mso-themecolor: text2; mso-ansi-language: en">You can find my <a title="another blog" href="https://blogs.msdn.com/syedi/archive/2008/07/18/why-should-one-save-publishing-pages-in-pages-list-always-in-moss-bend-it.aspx" mce_href="https://blogs.msdn.com/syedi/archive/2008/07/18/why-should-one-save-publishing-pages-in-pages-list-always-in-moss-bend-it.aspx"><strong><span style="color: #1f497d; mso-themecolor: text2">another blog</span></strong></a> on how to create the &quot;CustomCreatePage.aspx&quot; application page to store the publishing pages in various lists rather than only in Pages list.      <p></p>   </span></p>  <p><span lang="EN" style="mso-ansi-language: en">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong><i style="mso-bidi-font-style: normal"><span style="color: #1f497d; mso-themecolor: text2">HAPPY CUSTOMIZING</span></i></strong><i style="mso-bidi-font-style: normal"><span style="color: #1f497d; mso-themecolor: text2">         <p></p>       </span></i></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Customizing the List Toolbar Template - WSS 3.0 &amp; MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/customizing-the-list-toolbar-template-wss-3-0-moss</link>
      <pubDate>Fri, 04 Dec 2009 10:59:33 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2009/12/04/customizing-the-list-toolbar-template-wss-3-0-moss/</guid>
      <description><![CDATA[SharePoint Rendering Templates                   All the rendering Templates for the List are...]]></description>
      <content:encoded><![CDATA[<blockquote>   <p class="MsoNormal" style="margin-bottom: 10pt"><u><b><span lang="EN" style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri"> SharePoint Rendering Templates</span></b><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">         <p></p>       </span></u></p> </blockquote>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">All the rendering Templates for the List are defined in the defaulttemplates.ascx in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES folder.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">This defaulttemplates.ascx control defines the toolbar controls and the form controls for every list template.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The following table explains the rendering template Id and the respective List templates it associated with. Few examples of rendering template have been taken in this table:     <p></p>   </span></p>  <table class="MsoNormalTable" style="border-right: medium none; border-top: medium none; border-left: medium none; border-bottom: medium none; border-collapse: collapse; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt" cellspacing="0" cellpadding="0" border="1"><tbody>     <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: black 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Rendering Template</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: black 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>List Template</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 1">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">ViewToolbar</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Custom List, Tasks List,</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 2">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">DocumentLibraryViewToolBar</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Document Library</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 3">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">WikiLibraryViewToolBar</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Wiki Library</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 4">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">WebPartGalleryViewToolBar             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Web Part Gallery List</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 5">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">PictureLibraryViewToolBar</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Picture Library List</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 6; mso-yfti-lastrow: yes">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes">SiteListGalleryViewToolBar             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 239.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="319">         <p class="MsoNormal"><span style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Site List Gallery</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">             <p></p>           </span></p>       </td>     </tr>   </tbody></table>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">These rendering templates have been associated with the List template through the schema.xml file of the list definition.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">All the OOB SharePoint List definitions are created as a feature. Each definition has a schema.xml file which defines the Fields and Views of the list. In the Views you can set the “ToolbarTemplate” property to select the template from the defaulttemplates.ascx.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">In this blog will walk through you on customizing the toolbar of the document library.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><b><u><span lang="EN" style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Customizing the toolbar of the document library template</span></u></b><span lang="EN" style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">So far it’s clear that the rendering template in the defaulttemplates.ascx renders the controls for the toolbar for every list in the SharePoint. For document library the rendering template is “DocumnetLibraryViewToolbar”. Following is the snippet of “DocumentLibraryViewToolbar” from the defaulttemplates.ascx.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&lt;</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">SharePoint</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">:</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">RenderingTemplate</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"> <span style="color: red">ID</span><span style="color: blue">=&quot;DocumentLibraryViewToolBar&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">wssuc</span><span style="color: blue">:</span><span style="color: #a31515">ToolBar</span> <span style="color: red">CssClass</span><span style="color: blue">=&quot;ms-menutoolbar&quot;</span> <span style="color: red">EnableViewState</span><span style="color: blue">=&quot;false&quot;</span> <span style="color: red">id</span><span style="color: blue">=&quot;toolBarTbl&quot;</span> <span style="color: red">ButtonSeparator</span><span style="color: blue">=&quot;&lt;img src='/_layouts/images/blank.gif' alt=''&gt;&quot;</span> <span style="color: red">RightButtonSeparator</span><span style="color: blue">=&quot;&amp;nbsp;&amp;nbsp;&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template_Buttons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">NewMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_NewMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">UploadMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_UploadMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">ActionsMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_ActionsMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">SettingsMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_SettingsMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template_Buttons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template_RightButtons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">PagingButton</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">ListViewSelector</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template_RightButtons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">wssuc</span><span style="color: blue">:</span><span style="color: #a31515">ToolBar</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&lt;/</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">SharePoint</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">:</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">RenderingTemplate</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The gray shaded part in the above code shows the SharePoint controls rendered for the toolbar through this template. The New, Upload, Action and Settings are the menu control rendered in the left part of the toolbar. The ListViewSelector is the view selector control rendered in the right of the toolbar.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">If you want to customize this toolbar then you need to create your custom rendering template in the defaulttemplates.ascx control. Consider you want to customize toolbar in such a way that you want to restrict the user from uploading document and just want them to create the document from the SharePoint server. To achieve this you need to create a rendering template without upload menu in the defaulttemplates.ascx and need to associate this template with the schema.xml of the list definition by setting the “ToolbarTemplate” view property.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Modifying the OOB files are not supported so you need to create a customdefaulttemplates.ascx to add the rendering template without upload menu and you need to create a custom document library definition to associate the toolbar template with the definition.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Following are the steps to customize the toolbar template in the supported way.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160;&#160;&#160;&#160;&#160;&#160; <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">1. <span style="mso-spacerun: yes">&#160; </span>Copy the defaulttemplates.ascx and place it in the same location C:\Program Files\Common Files\Microsoft&#160;&#160;&#160;&#160;&#160; Shared\webserverextensions\12\TEMPLATE\CONTROLTEMPLATES. You can give any custom name to the ascx file.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">2.&#160;&#160; Remove all the rendering templates from the custom defaulttemplates.ascx except the “DocumentLibraryViewToolbar”. Change the ID to any custom name say “CustomDocumentLibraryViewToolbar”.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">3.&#160;&#160; Remove the “SharePoint: UploadMenu” control rendering from the template and save the custom defaulttemplates.ascx. The resultant rendering template looks like follows:     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in"><span lang="EN" style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&lt;</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">SharePoint</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">:</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">RenderingTemplate</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"> <span style="color: red">ID</span><span style="color: blue">=&quot;CustomDocumentLibraryViewToolBar&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">wssuc</span><span style="color: blue">:</span><span style="color: #a31515">ToolBar</span> <span style="color: red">CssClass</span><span style="color: blue">=&quot;ms-menutoolbar&quot;</span> <span style="color: red">EnableViewState</span><span style="color: blue">=&quot;false&quot;</span> <span style="color: red">id</span><span style="color: blue">=&quot;toolBarTbl&quot;</span> <span style="color: red">ButtonSeparator</span><span style="color: blue">=&quot;&lt;img src='/_layouts/images/blank.gif' alt=''&gt;&quot;</span> <span style="color: red">RightButtonSeparator</span><span style="color: blue">=&quot;&amp;nbsp;&amp;nbsp;&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template_Buttons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">NewMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_NewMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;<span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">ActionsMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_ActionsMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">SettingsMenu</span> <span style="color: red">AccessKey</span><span style="color: blue">=&quot;</span><span style="background: yellow; mso-highlight: yellow">&lt;%</span>$Resources:wss,tb_SettingsMenu_AK<span style="background: yellow; mso-highlight: yellow">%&gt;</span><span style="color: blue">&quot;</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template_Buttons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;</span><span style="color: #a31515">Template_RightButtons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">PagingButton</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 4">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160; </span><span style="color: blue">&lt;</span><span style="background: silver; color: #a31515; mso-highlight: silver">SharePoint</span><span style="background: silver; color: blue; mso-highlight: silver">:</span><span style="background: silver; color: #a31515; mso-highlight: silver">ListViewSelector</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template_RightButtons</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">wssuc</span><span style="color: blue">:</span><span style="color: #a31515">ToolBar</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue">&lt;/</span><span style="color: #a31515">Template</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&lt;/</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">SharePoint</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">:</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">RenderingTemplate</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">4.&#160; Create a custom document library definition. To create a custom document library definition copy the “DocumentLibrary” folder from C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES and paste in the same location with a custom name.</span><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160;</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">5.&#160; Change the feature Id of the custom document library definition in the feature.xml file. Change the Title, Description and other property you want to modify.</span><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160;</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">6.&#160; Open the schema.xml file of your custom document library definition and in the default view (BaseViewId=1) add the “ToolbarTemplate” attribute which mentions your custom rendering template created without the upload menu. The code snippet looks like follows :     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 12pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in"><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&lt;</span><span lang="EN" style="font-size: 10pt; color: #a31515; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">View</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes"> </span><span lang="EN" style="font-size: 10pt; color: red; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">BaseViewID</span><span lang="EN" style="font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">=</span><span lang="EN" style="font-size: 10pt; font-family: &quot;Courier New&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&quot;<span style="color: blue">1</span>&quot;<span style="color: blue"> </span><span style="color: red">Type</span><span style="color: blue">=</span>&quot;<span style="color: blue">HTML</span>&quot;<span style="color: blue"> </span><span style="color: red">WebPartZoneID</span><span style="color: blue">=</span>&quot;<span style="color: blue">Main</span>&quot;<span style="color: blue"> </span><span style="background: yellow; color: red; mso-highlight: yellow">ToolbarTemplate</span><span style="background: yellow; color: blue; mso-highlight: yellow">=</span><span style="background: yellow; mso-highlight: yellow">&quot;<span style="color: blue">CustomDocumentLibraryViewToolBar</span>&quot;</span><span style="color: blue"><span style="mso-spacerun: yes">&#160; </span></span><span style="color: red">DisplayName</span><span style="color: blue">=</span>&quot;<span style="color: blue">$Resources:core,All_Documents;</span>&quot;<span style="color: blue"> </span><span style="color: red">DefaultView</span><span style="color: blue">=</span>&quot;<span style="color: blue">TRUE</span>&quot;<span style="color: blue"> </span><span style="color: red">MobileView</span><span style="color: blue">=</span>&quot;<span style="color: blue">True</span>&quot;<span style="color: blue"> </span><span style="color: red">MobileDefaultView</span><span style="color: blue">=</span>&quot;<span style="color: blue">True</span>&quot;<span style="color: blue"> </span><span style="color: red">SetupPath</span><span style="color: blue">=</span>&quot;<span style="color: blue">pages\viewpage.aspx</span>&quot;<span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span>&quot;<span style="color: blue">/_layouts/images/dlicon.png</span>&quot;<span style="color: blue"> </span><span style="color: red">Url</span><span style="color: blue">=</span>&quot;<span style="color: blue">Forms/AllItems.aspx</span>&quot;<span style="color: blue">&gt;&lt;!--</span><span style="color: green"> _locID@DisplayName=&quot;camlidDc1&quot; _locComment=&quot; &quot; </span><span style="color: blue">--&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin-bottom: 10pt"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">7.&#160; Save the schema.xml file. Do an IISRESET. Install and activate the custom document library definition feature through stsadm command. </span><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&#160;</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">8.&#160; Now the custom document library definition will be available in the gallery while you create a dcumnet library. Select the custom document library and create the document library in the sharepoint site. </span><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&#160;</span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-indent: -0.25in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">9.&#160; Now you can notice that the document library toolbar doesn’t have the “Upload Menu” in it.     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.25in"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Courier New&#39;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.25in"><b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Courier New&#39;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">Further, If you want to override any of the functionality of this control. Then you can create a class library inheriting this control and ovverride the property you are looking for. Then add your DLL reference in the custom defaulttemplates.ascx and render the custom control instead of the OOB controls in the toolbar rendering template.         <p></p>       </span></i></b></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.25in"><b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Courier New&#39;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">         <p>&#160;</p>       </span></i></b></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 1.75in; text-indent: 0.25in"><b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><span lang="EN" style="font-size: 12pt; color: black; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-bidi-font-family: &#39;Courier New&#39;; mso-themecolor: text1; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-no-proof: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; HAPPY CUSTOMIZING.         <p></p>       </span></i></b></p>]]></content:encoded>
    </item>
    <item>
      <title>Custom Site Definition for collaboration portal template SharePoint 2007 !! Wow MOSS !!</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/custom-site-definition-for-collaboration-portal-template-sharepoint-2007-wow-moss</link>
      <pubDate>Fri, 04 Dec 2009 10:45:12 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2009/12/04/custom-site-definition-for-collaboration-portal-template-sharepoint-2007-wow-moss/</guid>
      <description><![CDATA[Hey I knew how to create custom site definition and created custom site definitions for a top...]]></description>
      <content:encoded><![CDATA[<p></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Hey I knew how to create custom site definition and created custom site definitions for a top level team site and a custom site definitions for Custom Serach Centre and the documents centre. Hurray !!! But how can i integrate all these three definitions into a single portal template so that one can choose the template and create a top level site along with the custom search centre and the documents centre as a sub site.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Oh yeah !! This feature has been given as collaboration portal template in the OOb sharepoint site definition. But they uses the OOb site definitions to create any sub sites and the collaboration portal what if i want to create a custom portal collaboration portal definition ?....     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">This blog post will walk you through creating custom site definition and creating custom site definition for collaboration portal template.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><b><i><u><span lang="EN" style="font-size: 10pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-bidi-font-size: 11.0pt">What is Site Definition?</span></u></i></b><b><i><u><span style="font-size: 10pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">           <p></p>         </span></u></i></b></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">A set of predefined components needs to be included when a site was created in the SharePoint server. The site definition contains the information of Web parts, Lists, Features, and Navigation Bars to be included in the site.      <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><b><i><u><span lang="EN" style="font-size: 10pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-bidi-font-size: 11.0pt">OOB Site Definition:</span></u></i></b><b><i><u><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">           <p></p>         </span></u></i></b></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">By default SharePoint comes with several OOB site definitions which you can select to create your site. In the file system these definitions are available in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Each of this site definition consists a XML folder and a Home page (default.aspx). Some of the site definition will be having some more details about the definition which we will walkthrough in more detail later.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The XML folder of the site definition contains the ONET.XML (Office .NET) file. This file contains the information about all the web parts, Lists, Features and Navigation Bars.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The configuration of this site definitions are defined in another XML file which is available in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML folder.      <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Following is the detail of the XML configuration file and the respective site definitions     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal"><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <table class="MsoNormalTable" style="border-right: medium none; border-top: medium none; border-left: medium none; border-bottom: medium none; border-collapse: collapse; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed" cellspacing="0" cellpadding="0" width="697" border="1"><tbody>     <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: black 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 113.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1" valign="top" width="151">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Configuration XML file             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: black 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 409.5pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1" valign="top" width="546">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Site Definition             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 1">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 113.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="151">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">WEBTEMP.XML             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 409.5pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="546">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">STS,MPS,CENTRALADMIN,BLOG,WIKI             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 2">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 113.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="151">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">WEBTEMPSPS.XML             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 409.5pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="546">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">SPS,SPSPERS,SPSMSITE,SPSTOC,SPSTOPIC,SPSNEWS,BLANKINTERNET,SPSNHOME,SPSSITES, SPSCOMMU, SPSREPORTCENTER, SPSPORTAL, SRCHCEN, PROFILES, SPSMSITEHOST             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 3">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 113.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="151">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">WEBTEMPSRCH.XML             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 409.5pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="546">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">SRCHCENTERLITE             <p></p>           </span></p>       </td>     </tr>      <tr style="mso-yfti-irow: 4; mso-yfti-lastrow: yes">       <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: black 1pt solid; width: 113.4pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" valign="top" width="151">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">WEBTEMPOFFILE.XML             <p></p>           </span></p>       </td>        <td style="border-right: black 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 409.5pt; padding-top: 0in; border-bottom: black 1pt solid; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1" valign="top" width="546">         <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span style="font-size: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">OFFILE             <p></p>           </span></p>       </td>     </tr>   </tbody></table>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="line-height: 200%; mso-pagination: widow-orphan lines-together"><b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u><span lang="EN" style="font-size: 12pt; color: black; line-height: 200%; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">How to create custom site definition:           <p></p>         </span></u></i></b></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">When you want to mention your own site definition to include some more web parts, Lists, features on creation of the site you need to create your custom site definition<b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u>. You should not make changes in the OOB site definition files and it is not supported.            <p></p>         </u></i></b></span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Based on the architecture of OOB site definition you need to create your custom site definition.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">1.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Create a site definition folder under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates. You can copy any of the existing site definition folder based on which OOB site definition you are going to extend the definition. Consider if you are going to extend the definition of Team Site then you need to copy the “sts” folder and paste it with your custom site definition name.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">2.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Create a configuration XML file under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML folder. You can copy the existing configuration file which configures the site definition based on which you are extending the custom site definition. Consider if you are going to extend the definition of Team Site then you need to copy the WEBTEMP.XML file. The naming convention is mandatory here and you need to name your custom webtemp.xml file in the following format WEBTEMP*.xml. (The SharePoint looks for the configuration inside the files which starts with WEBTEMP)     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">3.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">In custom WEBTEMP*.xml file you need to mention the custom site definition template folder name and need to mention the ID for it. The ID should be greater than 10000     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">4.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">You can mention any number of configuration per template provided you need to mention the contents for every configuration in the ONET.XML file.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">5.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The following snippet shows the sample custom WEBTEMP*.xml file :     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Templates xmlns: ows=&quot;Microsoft SharePoint&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Template Name=&quot;<b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u>&lt;Your Custom Site definition Folder name&gt;&quot; </u></i></b>ID=&quot;&lt;<b style="mso-bidi-font-weight: normal"><i style="mso-bidi-font-style: normal"><u>The ID should be greater than 10000</u></i></b>(from 1-10000 it was reserved by Microsoft for the OOB site definitions&quot;&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;Configuration ID=&quot;0&quot; Title=&quot;Team Site&quot; Hidden=&quot;FALSE&quot; ImageUrl=&quot;/_layouts/images/stsprev.png&quot; Description=&quot;A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions.&quot; Display Category=&quot;Collaboration&quot; &gt;<span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;/Configuration&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;Configuration ID=&quot;1&quot; Title=&quot;Blank Site&quot; Hidden=&quot;FALSE&quot; ImageUrl=&quot;/_layouts/images/blankprev.png&quot; Description=&quot;A blank site for you to customize based on your requirements.&quot; DisplayCategory=&quot;Collaboration&quot; AllowGlobalFeatureAssociations=&quot;False&quot; &gt;<span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;/Configuration&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;Configuration ID=&quot;2&quot; Title=&quot;Document Workspace&quot; Hidden=&quot;FALSE&quot; ImageUrl=&quot;/_layouts/images/dwsprev.png&quot; Description=&quot;A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document.&quot; DisplayCategory=&quot;Collaboration&quot; &gt;<span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;/Configuration&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;</span>&lt;/Template&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;/Templates&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-pagination: widow-orphan lines-together"><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><b style="mso-bidi-font-weight: normal"><span lang="EN" style="font-size: 12pt; color: #1f497d; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">Site Definition of collaboration portal Template       <p></p>     </span></b></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><b style="mso-bidi-font-weight: normal"><span lang="EN" style="font-size: 12pt; color: #1f497d; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">=========================================</span></b><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 12pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&#160; <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The process of the Collaboration portal site definition is different from the process and the flow of other site definition.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">1. Consider you have created some custom site definition for team site, search center and document centre individually.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">2. Now you want to provide<span style="mso-spacerun: yes">&#160; </span>such a template so that while creating a top level site using the template a collaboration sites for document center and the search center should be created based on your custom site definition.      <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">3. In more detail, You have Custom Site definition &quot;A&quot; for team site, Custom Site definition &quot;B&quot; for document center, Custom site definition &quot;C&quot; for Search Center. You want to provide a template such that a collaboration site should be created along with the search center and document centre by default.     <p></p>   </span></p>  <p class="MsoNormal" style="margin-bottom: 6pt"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The portal site definition uses the portalprovisioningprovider class in the Microsoft.SharePoint.Publishing Assembly. This class parses through a XML file and builds the Hierarchy defined in the file. This file is available under 12\Template\Site Templates\WebManifest. This PORTALWEBMANIFEST. Xml file defines the web templates to be used for the sites under the portal site.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The Basic Site definitions for portal site are available in 12\Template\Site templates\SPS. Making any changes in this template is not recommended or supported by Microsoft (the future updates will overwrite the custom definition as this templates are owned by Microsoft).     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="margin-left: 0.25in; mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">1.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">To create a custom site definition for portal Site, Create a copy of this SPS folder and name it as SPS*     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">2.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Create a copy of WEBTEMPSPS.xml file and name it as WEBTEMP*.xml. In this WEBTEMP*.xml file define your custom site definitions including the portal site     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">3.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The Template for the SPS is defined in WEBTEMPSPS. Xml under the configurationid = 20. Copy this template definition and paste it in your WEBTEMP*.xml. Set the ConfigurationID greater than 10000(Unique). Change the Template name as SPS* (the folder name which you created by copying the SPS folder) and change the title with your custom title if you want.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">4.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">The template for the portal site is defined in WEBTEMPSPS. Xml under the configurationid=47 with portalprovisioningprovider class. Copy this template definition and paste it in your WEBTEMP*.xml. Set the ConfigurationID as greater than 10000(Unique). Change the template name and title with your custom name (say SPSTEST) and title. You can erase the remaining template definition. Refer the following example to create WEBTEMP*. xml     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;!-- _lcid=&quot;1033&quot; _version=&quot;12.0.4518&quot; _dal=&quot;1&quot; --&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;!-- _LocalBinding --&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Templates&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Template Name=&quot;SPS*&quot; ID=&quot;10001&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Configuration ID=&quot;0&quot; Title=&quot;My Site Definition&quot; Hidden=&quot;FALSE&quot; ImageUrl=&quot;/_layouts/images/blogprev.png&quot;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Description=&quot;A Software Corporation site for a person or team to post ideas, observations, and expertise that site visitors can comment on.&quot;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>DisplayCategory=&quot;Custom&quot; &gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;/Configuration&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;/Template&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;Template Name=&quot;SPSTEST&quot; ID=&quot;10002&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;Configuration ID=&quot;0&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Title=&quot;My Collaboration Portal&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Type=&quot;0&quot; Hidden=&quot;FALSE&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>ImageUrl=&quot;/_layouts/1033/images/template_corp_intranet.png&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Description=&quot;A starter site hierarchy for an intranet divisional portal. It includes a home page, a News site, a Site Directory, a Document Center, and a Search Center with Tabs. Typically, this site has nearly as many contributors as readers and is used to host team sites.&quot;       <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>ProvisionAssembly=&quot;Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; ProvisionClass=&quot;Microsoft.SharePoint.Publishing.PortalProvisioningProvider&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;</span><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><b style="mso-bidi-font-weight: normal">ProvisionData=&quot;sitetemplates//Webmanifest//portal*. xml&quot;       <p></p>     </b></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>RootWebOnly=&quot;FALSE&quot;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-tab-count: 3">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">DisplayCategory=&quot;Custom&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160; </span>&lt;/Configuration&gt;       <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;</span>&lt;/Template&gt;<span style="mso-spacerun: yes">&#160; </span>      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">5.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Create a copy of PORTALWEBMANIFEST. Xml in 12\Template\Site Templates\WebManifest and name it as PORTAL*. xml     <p></p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">6.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;</span>In PORTAL*. Xml, for the HOME(Portal)web, set the SiteDefinition as your Custom SPS* . For the remaining webs(sites under portal) set your custom site definition (if any) as shown below(See the commented lines for more)      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;? xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;!-- _lcid=&quot;1033&quot; _version=&quot;12.0.4518&quot; _dal=&quot;1&quot; --&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;!-- _LocalBinding --&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;portal xmlns=&quot;PortalTemplate.xsd&quot;&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><b style="mso-bidi-font-weight: normal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;!-- Here Define your portal site name and SiteDefinition name --&gt;        <p></p>     </span></b></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;web name=&quot;HomeNew&quot; siteDefinition=&quot;SPS*&quot; displayName=&quot;$Resources:cmscore,IPPT_Portal_Root_DisplayName;&quot; description=&quot;$Resources:cmscore,IPPT_Portal_Root_Description;&quot; &gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;webs&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><b style="mso-bidi-font-weight: normal"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;!-- Here Define your Site name and site definition name which you want to create under the portal --&gt;        <p></p>     </span></b></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;web name=&quot;TEAM&quot; siteDefinition=&quot;STS&quot; displayName=&quot;My team&quot; description=&quot;$Resources:spscore,PortalManifest_News_Description;&quot; /&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><b style="mso-bidi-font-weight: normal">&lt;! -- Here the STS site definition is assigned to the Team Site. You can set your custom site definition for the sites -- &gt;       <p></p>     </b></span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&lt;/webs&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;/web&gt;      <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">&lt;/portal&gt;     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">7.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">In WEBTEMP*.xml set the provisiondata path to the PORTAL*. xml path(Site Templates//Webmanifest//Portal*.xml)     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">8.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Save all the files and do an IISREST     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">     <p>&#160;</p>   </span></p>  <p class="MsoNormalCxSpMiddle" style="margin-left: 0.5in; text-indent: -0.25in; mso-layout-grid-align: none; mso-add-space: auto"><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: verdana; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">9.</span><span lang="EN" style="font-size: 7pt; color: #1f497d; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; mso-themecolor: text2; mso-fareast-font-family: verdana; mso-ansi-language: en">&#160;&#160;&#160; </span><span lang="EN" style="font-size: 10pt; color: #1f497d; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-themecolor: text2; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-ansi-language: en">Now the Custom Site Definition will be available under Custom display category while creating a site. By using this template you can create your own Custom Portal Site.     <p></p>   </span></p>]]></content:encoded>
    </item>
    <item>
      <title>About “CreatedModifiedInfo” web control in SharePoint</title>
      <link>https://docs.microsoft.com/archive/blogs/syedi/about-createdmodifiedinfo-web-control-in-sharepoint</link>
      <pubDate>Wed, 25 Nov 2009 08:54:49 GMT</pubDate>
      <dc:creator><![CDATA[Syed PFE]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/syedi/2009/11/25/about-createdmodifiedinfo-web-control-in-sharepoint/</guid>
      <description><![CDATA[In SharePoint custom web application development sometimes we required to fetch the...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal" style="mso-layout-grid-align: none"><span style="color: #1f497d; mso-bidi-font-family: &#39;MS Sans Serif&#39;; mso-themecolor: text2">In SharePoint custom web application development sometimes we required to fetch the &quot;CreatedBy&quot; and &quot;ModifiedBy&quot; information and show it in the custom page we develops. Instead of writing a SharePoint object model code to fetch the value of &quot;CreatedBy&quot; and &quot;ModifiedBy&quot; information we can make use of an OOB web control which fetches the CreatedBy and ModifiedBy information. We can include this web control in the custom page to show the CreatedBy and ModifiedBy information. In Microsoft.SharePoint.WebControls you can find a control called &quot;CreatedModifiedInfo&quot;. This control is used in the various list form template in defaulttemplates.ascx. This control can be used in the custom web pages where you would like to render the &quot;CreatedBy&quot; and &quot;ModifiedBy&quot; information. This is a template control and the template controls for this web control is available in the &quot;DefaultTemplates.ascx&quot; with the ID &quot;CreatedModifiedInfo&quot; and it if versioning is enabled then it takes the &quot;CreatedModifiedVersionInfo&quot; rendering template from defaulttemplates.ascx.     <p></p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span style="color: #1f497d; mso-bidi-font-family: &#39;MS Sans Serif&#39;; mso-themecolor: text2">     <p>&#160;</p>   </span></p>  <p class="MsoNormal" style="mso-layout-grid-align: none"><span style="color: #1f497d; mso-bidi-font-family: &#39;MS Sans Serif&#39;; mso-themecolor: text2">So in the custom web pages where you would like to render the &quot;CreatedBy&quot; and &quot;ModifiedBy&quot; information then you just need to render the &quot;Microsoft.SharePoint.WebControls.CreatedModifiedInfo&quot; web control in the custom web page rather than fetching these information using object model.     <p></p>   </span></p>]]></content:encoded>
    </item>
  </channel>
</rss>