barcode rendering framework c# example CREATING CUSTOM SITE TEMPLATES in Font

Generating PDF 417 in Font CREATING CUSTOM SITE TEMPLATES

CHAPTER 8 CREATING CUSTOM SITE TEMPLATES
PDF417 Drawer In None
Using Barcode maker for Font Control to generate, create PDF-417 2d barcode image in Font applications.
www.OnBarcode.com
PDF 417 Creator In None
Using Barcode drawer for Font Control to generate, create PDF 417 image in Font applications.
www.OnBarcode.com
Caution If a template is deleted or inaccessible, any sites created using that template will become unusable.
UPC Symbol Generator In None
Using Barcode generator for Font Control to generate, create UPC Symbol image in Font applications.
www.OnBarcode.com
Draw Data Matrix ECC200 In None
Using Barcode maker for Font Control to generate, create ECC200 image in Font applications.
www.OnBarcode.com
Next, we ll look at customizing the site definition further by modifying ONET.XML.
Barcode Encoder In None
Using Barcode generator for Font Control to generate, create Barcode image in Font applications.
www.OnBarcode.com
Generating USS Code 39 In None
Using Barcode generation for Font Control to generate, create Code39 image in Font applications.
www.OnBarcode.com
Modifying ONET.XML
Create ANSI/AIM Code 128 In None
Using Barcode encoder for Font Control to generate, create Code 128 Code Set A image in Font applications.
www.OnBarcode.com
Creating Postnet In None
Using Barcode maker for Font Control to generate, create Postnet image in Font applications.
www.OnBarcode.com
This section covers how to modify the ONET.XML file to add a couple of document libraries and a web part. In the process, you ll learn how to make two of the most useful modifications to ONET.XML. You can think of ONET.XML as a punch list of things for SharePoint to add to a newly created site when using that template. The data in ONET.XML is transformed into data in the SharePoint SITES database and permanently associated with that site.
Create PDF 417 In Java
Using Barcode generation for Android Control to generate, create PDF-417 2d barcode image in Android applications.
www.OnBarcode.com
Print PDF 417 In None
Using Barcode creation for Online Control to generate, create PDF 417 image in Online applications.
www.OnBarcode.com
Adding Document Libraries
Printing QR Code In Java
Using Barcode creation for Java Control to generate, create QR-Code image in Java applications.
www.OnBarcode.com
Make Barcode In None
Using Barcode maker for Software Control to generate, create Barcode image in Software applications.
www.OnBarcode.com
The following fragment of the ONET.XML file shows the section that determines which document libraries will be created for the new site (see Listing 8-1). Note that I added an element starting with the text <List Title="Secure Documents". This tells SharePoint to create a new document library when adding the site. The Secure Documents library will be used to store documents that will be visible only to a limited subset of users. Listing 8-1. Configurations Element of ONET.XML <Configurations> ... <Configuration ID="0" Name="Default"> <Lists> <List Title="Shared Documents" Url="Shared Documents" QuickLaunchUrl="Shared Documents/Forms/AllItems.aspx" Type="101" /> <List Title="Secure Documents" Url="Secure Documents" QuickLaunchUrl="Secure Documents/Forms/AllItems.aspx" Type="101" /> </Lists> <Modules> <Module Name="Default"/> <Module Name="WebPartPopulation"/> </Modules> </Configuration> ...
Paint Barcode In .NET Framework
Using Barcode printer for .NET Control to generate, create Barcode image in VS .NET applications.
www.OnBarcode.com
Draw USS Code 39 In Java
Using Barcode printer for Java Control to generate, create ANSI/AIM Code 39 image in Java applications.
www.OnBarcode.com
CHAPTER 8 CREATING CUSTOM SITE TEMPLATES
Barcode Decoder In .NET Framework
Using Barcode recognizer for .NET Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
Encode PDF 417 In None
Using Barcode printer for Online Control to generate, create PDF 417 image in Online applications.
www.OnBarcode.com
Adding Web Parts
QR Code Recognizer In None
Using Barcode recognizer for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
Making Linear Barcode In Java
Using Barcode generator for Java Control to generate, create Linear image in Java applications.
www.OnBarcode.com
I also edited the Modules section to insert a TreeView web part during site creation (see Listing 8-2). Listing 8-2. Modules Element of ONET.XML <Modules> <Module Name="Default" Url="" Path=""> <File Url="default.aspx" NavBarHome="True"> <View List="104" BaseViewID="0" WebPartZoneID="Left"/> <View List="106" BaseViewID="0" WebPartZoneID="Left" WebPartOrder="2"/> ... <AllUsersWebPart WebPartZoneID="Left" WebPartOrder="2"> <![CDATA[ <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http://schemas.microsoft.com/WebPart/v2/Image"> <Assembly>MG.WebParts.DLTV, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dc85e9c54eade9c5</Assembly> <TypeName>MG.WebParts.DLTV.WebPart1</TypeName> <FrameType>Default</FrameType> <Title>Site Documents</Title> <DetailLink></DetailLink> <DoclibName xmlns="MG.WebParts.DLTV">Shared Documents, Secure Documents</DoclibName> </WebPart> ]]> </AllUsersWebPart> ... <View List="103" BaseViewID="0" WebPartZoneID="Right" WebPartOrder="3"/> <NavBarPage Name="Home" ID="1002" Position="Start"> </NavBarPage> <NavBarPage Name="Home" ID="0" Position="Start"> </NavBarPage> </File> </Module> The <Module> element specifies one or more files you want to include as part of a site. Typically, this will include the default.aspx web part page, but might include other pages as desired. The module name is referenced in the <Configuration> element that we used in the preceding section to add a document library. The <View List="104" BaseViewID="0" WebPartZoneID="Left"/> refers to an announcement list (list type = 104) that is to be added to the page in the left zone. Likewise, <View List="106" BaseViewID="0" WebPartZoneID="Left" WebPartOrder="2"/> indicates that an events list will be added to the left zone in the second position. Things get interesting when you come to the <AllUsersWebPart> tag. First, you might be wondering about the <![CDATA [ ... ]]> tag. This is an XML tag that allows any text between the start and end brackets to be treated a simple text. The most common use of these tags is to allow < and > characters to appear within XML content without the XML parser treating them as tag delimiters.
Printing QR Code JIS X 0510 In VB.NET
Using Barcode generation for .NET framework Control to generate, create Quick Response Code image in VS .NET applications.
www.OnBarcode.com
Create PDF-417 2d Barcode In Java
Using Barcode drawer for Eclipse BIRT Control to generate, create PDF417 image in BIRT reports applications.
www.OnBarcode.com
CHAPTER 8 CREATING CUSTOM SITE TEMPLATES
Tip Sometimes a web part definition requires a <![CDATA[...]]> construct as input to one or more of its properties. Most commonly this construct appears within the <Content></Content> element of a Content Editor web part definition to allow the inclusion of < and > characters. You cannot nest <![CDATA[...]]> elements, but you can replace < with < and > with > to accomplish the same result.
The next likely question is where the data for the <WebPart>...</WebPart> element came from. Fortunately, you don t have to come up with this from scratch because SharePoint provides all the XML you need for the <WebPart> section when you export a web part definition. To see how this works, I ll export an instance of the TreeView web part (see Figure 8-5).
Figure 8-5. Exporting the web part definition Next, I open the resulting .DWP file to examine its contents (see Listing 8-3). Listing 8-3. Web Part Definition XML from a .DWP File < xml version="1.0" encoding="utf-8" > <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2"> <Title>DLTV - Document Library TreeView</Title> <FrameType>Default</FrameType> <Description>Display a document library in a tree view.</Description> <IsIncluded>true</IsIncluded> <ZoneID>Left</ZoneID> <PartOrder>5</PartOrder> <FrameState>Normal</FrameState> <Height /> <Width /> <AllowRemove>true</AllowRemove> <AllowZoneChange>true</AllowZoneChange> <AllowMinimize>true</AllowMinimize> <IsVisible>true</IsVisible> <DetailLink /> <HelpLink /> <Dir>Default</Dir> <PartImageSmall /> <MissingAssembly /> <PartImageLarge /> <IsIncludedFilter />
Copyright © OnBarcode.com . All rights reserved.