<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Alexander Meijers</title><subtitle type="html">MOSS 2007, Office System 2007 and &amp;quot;The new world of work&amp;quot;</subtitle><id>http://bloggingabout.net/blogs/alex/atom.aspx</id><link rel="alternate" type="text/html" href="http://bloggingabout.net/blogs/alex/default.aspx" /><link rel="self" type="application/atom+xml" href="http://bloggingabout.net/blogs/alex/atom.aspx" /><generator uri="http://communityserver.org" version="4.1.40407.4157">Community Server</generator><updated>2005-10-20T15:04:00Z</updated><entry><title>MOSS language packs</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2007/04/16/moss-language-packs.aspx" /><id>/blogs/alex/archive/2007/04/16/moss-language-packs.aspx</id><published>2007-04-15T21:01:00Z</published><updated>2007-04-15T21:01:00Z</updated><content type="html">&lt;P&gt;&lt;FONT color=#000000&gt;Here is some usefull information regarding MOSS language packs. It seems that MOSS language packs are only available through Volume Licensing at the moment.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;MVLS: &lt;/FONT&gt;&lt;A href="https://licensing.microsoft.com/eLicense/L1033/Default.asp"&gt;&lt;FONT color=#808080&gt;https://licensing.microsoft.com/eLicense/L1033/Default.asp&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;MS.Com/eOpen: &lt;/FONT&gt;&lt;A href="https://eopen.microsoft.com/EN/default.asp"&gt;&lt;FONT color=#808080&gt;https://eopen.microsoft.com/EN/default.asp&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;More information:&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/sharepoint/archive/2006/08/17/2007-office-system-server-products-language-offerings.aspx"&gt;&lt;FONT color=#808080&gt;http://blogs.msdn.com/sharepoint/archive/2006/08/17/2007-office-system-server-products-language-offerings.aspx&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;Install available language template packs &lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://technet2.microsoft.com/Office/f?en-us/library/5a2be738-df29-43cd-b361-84b7822164e31033.mspx"&gt;&lt;FONT color=#808080&gt;http://technet2.microsoft.com/Office/f?en-us/library/5a2be738-df29-43cd-b361-84b7822164e31033.mspx&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;BR&gt;Deploy language packs &lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://technet2.microsoft.com/Office/f?en-us/library/26c07867-0150-463d-b21a-a6d42aecf05a1033.mspx"&gt;&lt;FONT color=#808080&gt;http://technet2.microsoft.com/Office/f?en-us/library/26c07867-0150-463d-b21a-a6d42aecf05a1033.mspx&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;BR&gt;Plan for multilingual sites &lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://technet2.microsoft.com/Office/f?en-us/library/22d5dc9c-66bd-40d7-8c60-2a2a066db2241033.mspx"&gt;&lt;FONT color=#808080&gt;http://technet2.microsoft.com/Office/f?en-us/library/22d5dc9c-66bd-40d7-8c60-2a2a066db2241033.mspx&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;White paper regarding Plan for building multilingual solutions&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://technet2.microsoft.com/Office/f?en-us/library/87065c9d-d39d-479d-909b-02160ec6d7791033.mspx"&gt;&lt;FONT color=#808080&gt;http://technet2.microsoft.com/Office/f?en-us/library/87065c9d-d39d-479d-909b-02160ec6d7791033.mspx&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=162640" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author><category term="MOSS" scheme="http://bloggingabout.net/blogs/alex/archive/tags/MOSS/default.aspx" /><category term="Language Packs" scheme="http://bloggingabout.net/blogs/alex/archive/tags/Language+Packs/default.aspx" /><category term="Volume Licensing" scheme="http://bloggingabout.net/blogs/alex/archive/tags/Volume+Licensing/default.aspx" /><category term="Template" scheme="http://bloggingabout.net/blogs/alex/archive/tags/Template/default.aspx" /></entry><entry><title>Restoring a WSS site using stsadm command</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/11/28/10389.aspx" /><id>/blogs/alex/archive/2005/11/28/10389.aspx</id><published>2005-11-27T23:32:00Z</published><updated>2005-11-27T23:32:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;Today i'm giving a presentation for a group of students about a project using SharePoint. In my case its a project built in Windows SharePoint Services (WSS).&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Last week i was at the customers location and did a backup of the WSS site. Today i tried to set it up in my Virtual PC environment, and with success! :)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;There are still some issues which are not handled by the backup / restore functionality of &lt;font face="Courier New" color="#808080"&gt;stsadm&lt;/font&gt; command.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Just for your information some of these issues:&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;It is only possible to&amp;nbsp;restore the WSS site when the same or higher service pack is installed&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;If you're using Custom WebParts. You have to copy them into your &lt;font face="Courier New" color="#808080"&gt;bin&lt;/font&gt; folder or install them into the &lt;font face="Courier New" color="#808080"&gt;GAC&lt;/font&gt;.&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Also do not forget to place the &lt;font face="Courier New" color="#808080"&gt;&amp;lt;SafeControl&amp;gt;&lt;/font&gt; entry in the &lt;font face="Courier New" color="#808080"&gt;web.config&lt;/font&gt; file&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;If you're using SessionState do not forget to turn it on in the &lt;font face="Courier New" color="#808080"&gt;web.config&lt;/font&gt; file&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;I always advise to create per site your own layouts and images folder. Change the paths of the virtual directories in &lt;/font&gt;&lt;font face="Courier New" color="#808080"&gt;IIS&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;font color="#000000"&gt;I used the following command line to restore the database:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;stsadm -o -restore -url http://somsite&amp;nbsp;-filename d:\pub\somesite.bkp -overwrite&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=10389" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Alter or not to alter the SharePoint Database?</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/26/10012.aspx" /><id>/blogs/alex/archive/2005/10/26/10012.aspx</id><published>2005-10-25T21:50:00Z</published><updated>2005-10-25T21:50:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;Its always a fact that Microsoft does not support modifications to database schemas or database structures of SharePoint. These changes can be overwritten by service packs, upgrades or new versions of the product.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;But.... still.... i came accross an article by Andy May which contained a link to the MSDN of microsoft where Microsoft describes each table of the SharePoint database. It still contains a Microsoft standard warning at the top. :)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;So, whats the reason for this? Why listing the database tables? &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The link to MSDN can be found at:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsdbTables_SV01051532.asp"&gt;&lt;font color="#000000"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsdbTables_SV01051532.asp&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The article of Andy May can be found at:&lt;/font&gt;&lt;/p&gt;
&lt;a href="http://www.sharepointblogs.com/andymay/archive/2005/10/25/4025.aspx"&gt;&lt;font color="#000000"&gt;http://www.sharepointblogs.com/andymay/archive/2005/10/25/4025.aspx&lt;/font&gt;&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=10012" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Adding a WebPart Page to a Document Library</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/26/10011.aspx" /><id>/blogs/alex/archive/2005/10/26/10011.aspx</id><published>2005-10-25T21:49:00Z</published><updated>2005-10-25T21:49:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;I always like these kind of postings. Proofing that some things are possible :) In his example he adds a WebPart Page to a Document Library by altering some code in the well-known &lt;font face="Courier New" color="#808080"&gt;ONET.XML&lt;/font&gt;. Do not be afraid of editing this file. Its quite easy to understand whats going on.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Check your documentation &amp;quot;Microsoft SharePoint Products and Technologies 2003 Software Development Kit&amp;quot; (file &lt;font face="Courier New" color="#808080"&gt;spptsdk.chm&lt;/font&gt;) and look for &lt;font face="Courier New" color="#808080"&gt;ONET.XML&lt;/font&gt;. You will find an article describing each bit of this file.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The article describing pre-populating a document library can be found at:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cjwalker/archive/2005/10/26/484879.aspx"&gt;&lt;font color="#000000"&gt;http://blogs.msdn.com/cjwalker/archive/2005/10/26/484879.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Thanks to &lt;/font&gt;&lt;a href="http://blogs.msdn.com/cjwalker/default.aspx"&gt;&lt;font color="#000000"&gt;Christopher Walker!&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=10011" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Style Under Cursor CEWP by Todd Bleeker</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/26/10010.aspx" /><id>/blogs/alex/archive/2005/10/26/10010.aspx</id><published>2005-10-25T21:48:00Z</published><updated>2005-10-25T21:48:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://mindsharpblogs.com/todd/"&gt;&lt;font color="#000000"&gt;Todd&lt;/font&gt;&lt;/a&gt;&lt;font color="#000000"&gt; wrote a nice article about showing styles when moving your cursor around. A lot of people asked him how to alter elements of WSS WebPart Pages. He gives a good walk-through and some code. Thanks Todd :)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mindsharpblogs.com/todd/archive/2005/10/25/798.aspx"&gt;&lt;font color="#000000"&gt;http://mindsharpblogs.com/todd/archive/2005/10/25/798.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=10010" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Access Command-Line Properties in SharePoint using a SPPropertyBag</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/25/10001.aspx" /><id>/blogs/alex/archive/2005/10/25/10001.aspx</id><published>2005-10-25T04:18:00Z</published><updated>2005-10-25T04:18:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;I found a nice topic in the&amp;nbsp;SharePoint documentation&amp;nbsp;which explains the properties that can be set on the command line using the stsadmin.exe tool with the getproperty and setproperty operations. This is as follow:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;stsadm.exe -o getproperty -pn &amp;lt;property name&amp;gt; [-url &amp;lt;url&amp;gt;]&lt;br /&gt;
stsadm.exe -o setproperty -pn &amp;lt;property name&amp;gt; -pv &amp;lt;property value&amp;gt; [-url &amp;lt;url&amp;gt;]&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;As stated in the &amp;quot;Microsoft Office SharePoint Portal Server 2003 Administrator's Guide&amp;quot; (file &lt;font face="Courier New" color="#808080"&gt;SharepointPSAdmin.chm&lt;/font&gt;):&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;&amp;quot;Some properties are available for the entire server, and are called server properties. Some are only available for an individual virtual server. When you get or set a server property, you can omit the url parameter. You must include the url parameter to get or set virtual server properties. For more information about setting properties, see &amp;quot;Introducing the Administration Tools for Windows SharePoint Services&amp;quot; in the Windows SharePoint Services Administrator's Guide.&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The properties are divided in several categories:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font color="#000000"&gt;Server Properties for Windows SharePoint Services&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Antivirus properties &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Data retrieval services properties&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;HTML Viewer properties &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Site confirmation and automatic deletion properties&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Usage analysis properties&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;br /&gt;
&lt;strong&gt;&lt;font color="#000000"&gt;Virtual Server Properties for Windows SharePoint Services&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Alert properties&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Content database properties &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Data retrieval services properties&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;General properties &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Site confirmation and automatic deletion properties&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Lookup &amp;quot;Command-Line Properties&amp;quot; in the mentioned file for the complete list and explaination of each property divided over the categories.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;But it would be nice if you can access these properties programmatically. This is possible with the following code:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;Microsoft.SharePoint.Administration.SPGlobalAdmin globAdmin = new Microsoft.SharePoint.Administration.SPGlobalAdmin();&lt;br /&gt;
Microsoft.SharePoint.Administration.SPGlobalConfig globConfig = globAdmin.Config;&lt;br /&gt;
&lt;br /&gt;
SPPropertyBag propBag = globConfig.Properties;&lt;br /&gt;
System.Collections.ICollection keys = propBag.Keys;&lt;br /&gt;
&lt;br /&gt;
foreach (object key in keys)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;output.Write(SPEncode.HtmlEncode(key.ToString()) + &amp;quot; :: &amp;quot; +&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;SPEncode.HtmlEncode(propBag[key.ToString()]) + &amp;quot;&amp;lt;BR&amp;gt;&amp;quot;);&lt;br /&gt;
}&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=10001" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Get the listing of sites under Sites directory in SharePoint Portal Server</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/20/9922.aspx" /><id>/blogs/alex/archive/2005/10/20/9922.aspx</id><published>2005-10-20T04:06:00Z</published><updated>2005-10-20T04:06:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;Did you ever wonder where those sites went if you create one under the &lt;em&gt;Sites&lt;/em&gt; directory within SharePoint Portal Server? I did! If you try to list a sites by using the &lt;font face="Courier New" color="#808080"&gt;SPSite.AllWebs&lt;/font&gt; they will not show up. Why? So far as I can see they are created as &amp;quot;floating&amp;quot; sites. But there is a way to list them. The &lt;em&gt;Sites&lt;/em&gt; directory is a Area and can be found easily.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;First create a &lt;font face="Courier New" color="#808080"&gt;TopologyManager&lt;/font&gt; and retrieve the &lt;font face="Courier New" color="#808080"&gt;PortalSite&lt;/font&gt; object by using an &lt;font face="Courier New" color="#808080"&gt;Uri&lt;/font&gt; object.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;TopologyManager topologyManager = new TopologyManager();&lt;br /&gt;
Uri uri = new Uri(&amp;quot;&lt;/font&gt;&lt;a href="http://net.bloggix.com/ct.ashx?id=71db3f1a-2101-48e8-80c7-01a048bbd60f&amp;amp;url=http%3a%2f%2flocalhost%2f"&gt;&lt;font face="Courier New" color="#808080"&gt;http://localhost/&lt;/font&gt;&lt;/a&gt;&lt;font face="Courier New" color="#808080"&gt;&amp;quot;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;PortalSiteCollection sites = topologyManager.PortalSites;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;PortalSite portalSite = sites[uri];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Then get the &lt;font face="Courier New" color="#808080"&gt;PortalContext&lt;/font&gt; and use this to get the &lt;font face="Courier New" color="#808080"&gt;Guid&lt;/font&gt; of the &lt;font face="Courier New" color="#808080"&gt;SystemArea&lt;/font&gt;. The &lt;font face="Courier New" color="#808080"&gt;SystemArea &lt;/font&gt;is an enumeration providing you some starting points of Areas.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;PortalContext portalContext = PortalApplication.GetContext(portalSite);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;Guid homeGuid = AreaManager.GetSystemAreaGuid(portalContext, SystemArea.Home);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Based on the &lt;font face="Courier New" color="#808080"&gt;Guid&lt;/font&gt; its very easy to retrieve the actual &lt;font face="Courier New" color="#808080"&gt;Area&lt;/font&gt; object. And based on that &lt;font face="Courier New" color="#808080"&gt;Area&lt;/font&gt; object we retrieve the &lt;em&gt;Sites&lt;/em&gt; &lt;font face="Courier New" color="#808080"&gt;Area&lt;/font&gt; object from its children.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;Area homeArea = AreaManager.GetArea(portalContext, homeGuid);&amp;nbsp;&lt;br /&gt;
Area sitesArea = homeArea.Areas[&amp;quot;Sites&amp;quot;];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Loop through the &lt;font face="Courier New" color="#808080"&gt;AreaListings&lt;/font&gt; in this &lt;font face="Courier New" color="#808080"&gt;Area&lt;/font&gt; object and check if its type is&amp;nbsp;&lt;font face="Courier New" color="#808080"&gt;ListingType.Site&lt;/font&gt;. The &lt;font face="Courier New" color="#808080"&gt;URL&lt;/font&gt; property contains the url to the created sites.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;foreach(AreaListing listing in sitesArea.Listings)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;if (listing.Type == ListingType.Site)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;output.WriteLine(String.Format(&amp;quot;{0} ({1})&amp;lt;br&amp;gt;&amp;quot;, listing.Title, listing.URL));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=9922" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry><entry><title>Creating a Site Definition from an Existing Site Definition</title><link rel="alternate" type="text/html" href="/blogs/alex/archive/2005/10/20/9921.aspx" /><id>/blogs/alex/archive/2005/10/20/9921.aspx</id><published>2005-10-20T04:04:00Z</published><updated>2005-10-20T04:04:00Z</updated><content type="html">&lt;p&gt;&lt;font color="#000000"&gt;I got a lot of questions of colleages regarding custom templates and site definitions. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;As stated in the help: &lt;/font&gt;&lt;font color="#000000"&gt;&lt;em&gt;&amp;quot;A custom template is a customization applied to a site definition. When a user customizes a site or list in the user interface, the custom template consists of the difference between the original state of the site or list as determined by its definition and the state of the site when the custom template is generated. Custom templates remain tied to a particular site definition (for example, the one for a SharePoint site or a Meeting Workspace site), so that if the site definition is not present or is changed, the custom template will not work.&amp;quot; &lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;In many cases building Portals with SharePoint Portal Server you want to change the defined Site definitions. These Site definitions are the templates you can choose from when you create a new site.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The problem with changing a Site definition is that when somebody else in another Portal creates a site with the same template, he is also getting your changes. So the following sequence of steps can be taken to create your own Site definition.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The first thing you have todo is copy an existing Site definition and rename it. Existing site definitions are found in the folder&lt;font face="Courier New" color="#808080"&gt; &amp;lt;localdrive&amp;gt;:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\&amp;lt;localeid&amp;gt;.&lt;/font&gt; For example copy the &lt;em&gt;STS&lt;/em&gt; folder and rename it to &lt;em&gt;MYSTS&lt;/em&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;In this folder you will find an XML folder containing the file &lt;font face="Courier New" color="#808080"&gt;ONET.XML&lt;/font&gt;. This is the schema file containing Collaborative Application Markup Language (CAML). If you want to make changes to the listings, WebParts and other stuff showing up when creating a site, this is file to make the changes in.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The next step is telling SharePoint that there is a new template defined. Under the folder &lt;font face="Courier New" color="#808080"&gt;&amp;lt;localdrive&amp;gt;:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\&amp;lt;localid&amp;gt;\XML&lt;/font&gt; you will find a schema file called &lt;font face="Courier New" color="#808080"&gt;WEBTEMP.XML&lt;/font&gt;. Copy this file and call it &lt;em&gt;WEBTEMPMY.XML&lt;/em&gt;. It is very important that the name of the file starts with &lt;strong&gt;WEBTEMP&lt;/strong&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Your &lt;em&gt;WEBTEMPMY.XML&lt;/em&gt; will look like this:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color="#808080"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;!-- _lcid=&amp;quot;1033&amp;quot; _version=&amp;quot;11.0&amp;quot; _dal=&amp;quot;1&amp;quot; --&amp;gt;&lt;br /&gt;
&amp;lt;!-- _LocalBinding --&amp;gt;&lt;br /&gt;
&amp;lt;Templates xmlns:ows=&amp;quot;Microsoft SharePoint&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Template Name=&amp;quot;MYSTS&amp;quot; ID=&amp;quot;10200&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Configuration ID=&amp;quot;0&amp;quot; Hidden=&amp;quot;False&amp;quot; Title=&amp;quot;&amp;lt;some title&amp;gt;&amp;quot; Type=&amp;quot;0&amp;quot; ImageUrl=&amp;quot;&amp;lt;someimage&amp;gt;&amp;quot; Description=&amp;quot;&amp;lt;somedescription&amp;gt;&amp;quot;&amp;gt;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Configuration&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/Template&amp;gt;&lt;br /&gt;
&amp;lt;/Templates&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The following things are very important:&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Make sure that the &lt;font face="Courier New" color="#808080"&gt;Name&lt;/font&gt; property of the &lt;font face="Courier New" color="#808080"&gt;Template&lt;/font&gt; element is the same as the name of your folder. &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;The &lt;font face="Courier New" color="#808080"&gt;ID&lt;/font&gt; property of the &lt;font face="Courier New" color="#808080"&gt;Template&lt;/font&gt; element should be in the range of &lt;strong&gt;&lt;u&gt;10000 or higher&lt;/u&gt;&lt;/strong&gt;. Make sure its not used anywhere else. &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;The &lt;font face="Courier New" color="#808080"&gt;ID&lt;/font&gt; property of the Configuration element points to a configuration with the same id in the &lt;font face="Courier New" color="#808080"&gt;ONET.XML&lt;/font&gt;. &lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000"&gt;Property &lt;font face="Courier New" color="#808080"&gt;Hidden&lt;/font&gt; determines if the template should appear in the list when creating sites. It could be that you create your own sites based on the Site definition in a custom WebPart and users are not able to use your Site definition.&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The final step is resetting the IIS by calling iisreset. It also works when recycling the application pool used by your Portal.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Further information regarding this subject can be found in the article &amp;quot;Creating a Site Definition from an Existing Site Definition&amp;quot; in Microsoft SharePoint Products and Technologies 2003 Software Development Kit.&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=9921" width="1" height="1"&gt;</content><author><name>Alexander Meijers</name><uri>http://bloggingabout.net/members/Alexander-Meijers/default.aspx</uri></author></entry></feed>
