﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 5/17/2012 3:03:12 AM-->
<?xml-stylesheet type="text/xsl" href="/_layouts/RssXslt.aspx?List=3cc71d3c-1254-427e-9849-1f15a0cd330c" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Developer's Guide to Windows SharePoint Services 3.0: Errata</title>
    <link>http://developersguide.mindsharp.com/Errata/Forms/AllPages.aspx</link>
    <description>RSS feed for the Errata list.</description>
    <lastBuildDate>Thu, 17 May 2012 08:03:12 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>Developer's Guide to Windows SharePoint Services 3.0: Errata</title>
      <url>/_layouts/images/homepage.gif</url>
      <link>http://developersguide.mindsharp.com/Errata/Forms/AllPages.aspx</link>
    </image>
    <item>
      <title>Chapter06</title>
      <link>http://developersguide.mindsharp.com/Errata/Forms/DispForm.aspx?ID=8</link>
      <description><![CDATA[<div class=ExternalClassDA969072CFA243EA8F6F7522E731D98B><font size=5><font face="Times New Roman">
<p class=CRMBodyText style="margin:0in 0in 12pt"><font style="background-color:#0000ff" face="Times New Roman" color="#ccffff" size=3>page 148                                                                                                                                                                  </font></p><font face=Consolas>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>The following CAML is used to create an Issues list instance. <strong>issues_Folder</strong> does not exist and should be replace with <strong>issuesList</strong> in the following code:</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>&lt;List FeatureId=&quot;00BFEA71-5932-4F9C-AD71-1557E5751100&quot; Type=&quot;1100&quot; Title=&quot;$Resources:core,issuesList;&quot; Url=&quot;$Resources:core,lists_Folder;/$Resources:core,<strong>issues_Folder</strong>;&quot; QuickLaunchUrl=&quot;$Resources:core,lists_Folder;/$Resources:core,<strong>issues_Folder</strong>;/AllItems.aspx&quot; /&gt;</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>The error caused by this typo looks like this:</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><img alt="issues_Folder Error" src="/Images1/issue_FolderError.jpg"></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>I provide a sample VS.NET project with an entire working site definition <a href="http://tinyurl.com/23gafq">here</a>. </font><font size=3>Please also see related error on page 150 (later on this page).</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3></font> </p><font size=3>
<p class=MsoPlainText style="margin:0in 0in 0pt"></font></font><font face=Consolas size=3><font style="background-color:#0000ff" face="Times New Roman" color="#ccffff" size=3>page 149                                                                                                                                                                  </font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt">
<p class=MsoPlainText style="margin:0in 0in 0pt">The side bar states that the URL is limited to 260 characters. In WSS v2, this was true. In WSS v3, it's possible to create URLs considerably longer than 260 characters (perhaps a max of 1155 characters). The suggestion not to use spaces still stands, but the number is innacurate.</font></p>
<p></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3><font style="background-color:#0000ff" face="Times New Roman" color="#ccffff" size=3>page 150                                                                                                                                                                  </font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"></font><strong>issues_Folder</strong> does not exist and should be replace with <strong>issuesList</strong> in the following code:</p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>&lt;View List=&quot;$Resources:core,lists_Folder;/$Resources:core,<strong>issues_Folder</strong>;&quot; BaseViewID=&quot;0&quot; WebPartZoneID=&quot;Left&quot; WebPartOrder=&quot;3&quot; /&gt;</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3>Please see the related error on page 148 (earlier on this page).</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt">
<p class=MsoPlainText style="margin:0in 0in 0pt"><font size=3></font> </p></font><font face="Times New Roman" size=3>
<p class=CRMBodyText style="margin:0in 0in 12pt"><font style="background-color:#0000ff" face="Times New Roman" color="#ccffff" size=3>page 150ff                                                                                                                                                                </font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>This section had some typos and step #2 wasn't needed at all.</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"></font><strong>Add a Custom Master Page</strong></font></font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>This Master pages in WSS v3 replace the old direct-mode page paradigm from WSS v2. Master pages are referenced in the page directive or in code. Therefore, master pages will always be referenced, even if a page is customized (unghosted). This is a huge improvement over the approach used in WSS v2 because global change can nearly always be achieved regardless of how much the instance pages of any website are customized. Customizing Master Pages using SPD will throw a wrench in this.</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Use the following steps to add a master page and set the default.aspx Template page to use the custom master page rather than the default master page defined by Microsoft:</font></p>
<div class=ExternalClassE1CF2D63815C4209BD7A437EE2C4358C>
<ol>
<li>
<div class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>In the VS.NET Solution Explorer, right-click on the STS2 project name and choose Existing Item... from the Add context menu.</font></div></li>
<li>
<div class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Browse to the 12 Hive’s ..\12\TEMPLATE\GLOBAL directory. To add a copy of the default.master page from here, the Files of type must be changed to All Files (*.*). Choose the default.master file and click Add. A copy of the master page is added to the Solution Explorer.</font></div></li>
<li>
<div class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Rename the copied file to something like: sts2.master. It must end with the master suffix.</font></div></li>
<li>
<div class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Alter the master page to meet the business needs. For this exercise, add a large header to the top of the page that says STS2 Custom Master Page by placing the following code just after the master page’s BODY tag:<br><br>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>&lt;h1&gt;STS2 Master Page&lt;/h1&gt;<br></font></p></font></div></li>
<li>
<div class=MsoPlainText style="margin:0in 0in 0pt">
<div class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>To make the custom site definition aware of the new custom master page, add the following Module to the Modules section at the bottom of the ONET.XML file:<br><br></font><font face=Consolas size=3>&lt;Module Name=&quot;STS2MasterPage&quot; Url=&quot;_catalogs/masterpage&quot;&gt;<br>  </font><font face=Consolas size=3>&lt;File Url=&quot;sts2.master&quot; Type=&quot;GhostableInLibrary&quot; /&gt;<br></font><font face=Consolas size=3>&lt;/Module&gt;<br><br></font><font face=Consolas size=3>This module tells WSS v3 to include a link (GhostedInLibrary) to the sts2.master page in the Master Page Gallery found at _catalogs/masterpage. The module is named STS2MasterPage.<br></font></div></div></li>
<li class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>The module will only be included if a call is made to it at the configuration that the user selects. Add the following code to the Modules section of the configuration to call the STS2MasterPage module in the configuration:<br><br></font><font face=Consolas size=3>&lt;Module Name=&quot;STS2MasterPage&quot; /&gt;<br></font></li>
<li class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Set the CustomMasterUrl attribute of the configuration element to use the custom master page like this:<br></font><font face=Consolas size=3><br>&lt;Configuration ID=&quot;0&quot; Name=&quot;Default&quot;<br></font><font face=Consolas size=3>  CustomMasterUrl=&quot;_catalogs/masterpage/STS2.master&quot;&gt;<br></font></li>
<li class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Finally, the Template page to use the custom master page token by specifying the MasterPageFile attribute of the page directive like this (the default value):<br><br></font><font face=Consolas size=3>&lt;%@ Page language=&quot;C#&quot; MasterPageFile=&quot;~masterurl/custom.master&quot;</font></li></ol></div>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>Rebuild the project to copy the WEBTEMP*.XML file and recycle the application pool to test the new site definition.</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>HTH,</font></p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3></font> </p>
<p class=MsoPlainText style="margin:0in 0in 0pt"><font face=Consolas size=3>&lt;Todd /&gt;</font></p></div>]]></description>
      <author>Todd Bleeker</author>
      <pubDate>Wed, 07 Feb 2007 17:15:53 GMT</pubDate>
      <guid isPermaLink="true">http://developersguide.mindsharp.com/Errata/Forms/DispForm.aspx?ID=8</guid>
    </item>
  </channel>
</rss>
