28. ACME Vendors Site Definition This XML code defines the site template for ACME Vendors: <?xml version="1.0" encoding="utf-8" ?> - <Templates> - <Template Name="Vendors" ID="10001"> <Configuration ID="1" Title="Vendors" Description="" Hidden="FALSE" ImageUrl="/_layouts/images/stsprev.png" DisplayCategory="ACME" /> </Template> </Templates>
29. The Custom Site Template The site definition for ACME vendors is a customized blank site, solely for sub sites for ACME main site.
30. Code for the ACME Vendor Sub site Creation Web Part This is the code for the user interface: This is the code for creating sub site:
31.
32.
33. Note that the Invoices and Purchase Orders Document Libraries are provisioned in the new site. The web part contains the functionality to include the document libraries automatically.