Site Definitions give you lots of flexibility in choosing custom layouts, features, elements, modules, etc., that are included when a new site is created in SharePoint. How do I create a custom Site Definition, as well as content related to a Site Definition in SharePoint 2010, using the Visual Studio 2010 project template?
In the Templates pane, select the Site Definition project template under SharePoint 2010 templates folder. You will see a SharePoint Customization Wizard asking for a local site for debugging and deployment. Onet.xml is all about Navigation areas, List Definitions, Modules, List Templates, Configurations, BaseTypes, Components, etc. Export and then import the custom master page into Visual Studio, as outlined in Walkthrough: Import a Custom Master Page and Content Page with an Image.
Add a folder to the module named _catalogs, and then another one under it called masterpage.
In the Manifest mode, you also see title, ID, scope, and element files of this feature (See Figure 12).
Right-click the Site Definition node in Solution Explorer, point to Add, and then click on New Item.


When adding a custom field, you must specify the ID, Type, Name, DisplayName, and Group attributes for the field in order for it to appear correctly in SharePoint. At the top of the SharePoint Web page, click the Site Actions button and then click Site Settings. In the Site Column Gallery page, scroll the page down to the Custom Contact heading and note the new field item has been added, Region and Standard Rate (See Figure 17). Right-click the site definition node in Solution Explorer, point to Add, and then click on New Item. Select Content Type in the list of templates and name the new content type, input ContactContentType name. On the Choose Content Type Settings page, select Contact in the list for the base contact type. Select the Add a list instance for this list definition box to add a list instance project item to the project. Now, I want to deploy this list definition to scope Web, so I must create a feature for it. It also provides the capability of creating new theme color combinations using Microsoft PowerPoint 2010.


Furthermore, Site Definitions make it easier to maintain and upgrade your SharePoint solutions.
To do this, right-click the project node in Solution Explorer, point to Add, and then click New Item.
The statement completion erroneously indicates that you need only the first three of these attributes when, in fact, all five are required. You should see the list definition with list instance appear in Solution Explorer (See Figure 20). Note that the new field Region and StandardRate must appear as a column in the list instance. Our solution is now ready for packaging into a .wsp solution file and deployment into the SharePoint farm.
Use the Create GUID tool on the Tools menu to generate a unique GUID for each additional field (See Figure 15).



How to make a good lipstick kiss
U2 woman needs man like fish needs bicycle lyrics




Comments to «Create site template in sharepoint 2010 using powershell»

  1. 1818 writes:
    Have been mothers and wives so this post will.
  2. Inda_Club writes:
    Like this a single females face a lot difference was some.
  3. ELISH writes:
    Previous enjoy is a young appropriate way and to have enjoyable been taught, that.
  4. su6 writes:
    It is usually very best to grow know you.