17 December, 2012

Question: Is it possible to set my newly created custom page in my SharePoint site as the home page.

Ans. Yes, it’s possible to use a custom page as a home page. You can set it in multiple ways:
  • If you have enabled the Publishing features on your site, or your site was created from a Publishing template, then you can just go to Site Actions, Site Settings and click Welcome Page, then select a page.
  • You can open the site in SharePoint Designer, right-click any .ASPX page, and select Set as Home Page.
  • If you're a developer, you can set the home page by using code. See the MSDN page "SPFolder.WelcomePage property" for more information.
  • If you're a SharePoint administrator, you can use a Windows PowerShell script to select a master page:
$web = $site.RootWeb
        (or $web = $site.OpenWeb("yoursubsite")
$folder = $web.RootFolder
$folder.WelcomePage = "SitePages/home.aspx"
        (or  $folder.WelcomePage = "default.aspx")
        (or  $folder.WelcomePage = "Shared%20Documents/mycustomwebpartpage.aspx")
$folder.update()
$web.Dispose()
$site.Dispose()

1 comment:

  1. Devops is not a Tool.Devops Is a Practice, Methodology, Culture or process used in an Organization or Company for fast collaboration, integration and communication between Development and Operational Teams. In order to increase, automate the speed of productivity and delivery with reliability.

    python training in bangalore
    aws training in bangalore
    artificial intelligence training in bangalore
    data science training in bangalore
    machine learning training in bangalore
    hadoop training in bangalore
    devops training in bangalore
    iot training in bangalore

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.