SharePoint 2010 Part 5: How to create sites/subsites in a Site Collection

This series is mainly targeted for developers.

  • Open site collection in browser. If you are following from previous articles, it would look like the following

image

  • Go to Site Actions –> New Site as shown below

image

  • Select a template (in this case, “Team Site”), provide name and URL and finally click on “Create” (you can customize more using “More Options” button)

image

  • The site gets created and it looks something like the following

image

  • If you go back to Site Collection, you should also site as shown below:

image

You can follow the same above method for creating sub-sites, except that you would start with site instead of site-collection. Most of the options available for “Site Collection” would also be available for “Site”.

Second Approach:

We can also achieve similar to above using a different approach

  • go to Site Actions –> Site Settings as shown below

image

  • Under “Site Administration”, select “Sites and Workspaces”

image

  • You can click on “Create” at the top

image

  • Provide site details as necessary

image

  • Customize as necessary and click on “Create”

image

  • Once created, you should see new “HR” site as shown below

image

  • You can use “up” button to go through different site hierarchies

image

  • Once you move back to “Site collection” home, you should see both sites available from home page of site collection as shown below

image

  • You can also check the above sites in database as shown below

SELECT
SiteId AS SiteGuid,
Id AS WebGuid,
FullUrl AS Url,
Title,
TimeCreated
FROM dbo.Webs

image

Another approach is to go to “Site Actions –> View All Site Content” and filter “View” with “Sites and Workspaces” and click on “Create” at the top as shown below:

image

Source:http://learndotnetprogramming.com

0 nhận xét:

Post a Comment

thanks comment