3 votes
Accepted

$web.RootFolder.WelcomePage doesnt work on publish site

You said that you are working with a publishing enabled site. As far as I know, the code you are using can't work on Publishing sites, you should use the .DefaultPage property provided by the ...
user avatar
  • 6,854
2 votes
Accepted

How to Checkin welcome page with powershell for SharePoint 2016

$spWeb=Get-SPWeb "SiteURL" $folder = $spWeb.RootFolder $pageURL=$folder.WelcomePage $page = $spWeb.GetFile($pageUrl); if ($page.CheckedOutBy.UserLogin -eq $spWeb.CurrentUser.UserLogin) { $page....
user avatar
  • 1,817
1 vote

powershell csom document set welcome page view

Here is technet answer I found of someone trying to achieve the same thing. In case the link ever goes down, here is the answer in question: You can certainly do this with PowerShell! You need to ...
user avatar
  • 640
1 vote

Edit person.aspx?

The best practice is to Create a Visual Studio Solution. Then add your page layouts and other styling files. Create a feature receiver Use that to set the Page or create new page using the custom ...
user avatar
  • 28.2k
1 vote
Accepted

Find the startpage of current web using javascript?

Thanks for the help, unfortunately it didnt work for me since there where something wrong with my SP.Publishing reference. Instead I fixed it with this code: $(document).ready(function () { if (...
user avatar
  • 57
1 vote

Find the startpage of current web using javascript?

SPWeb has RootFolder which internally has WelcomePage property. You can use that to get this information var clientContext = new SP.ClientContext.get_current(); var spWeb = clientContext.get_web(); ...
user avatar
  • 28.2k
1 vote

Document sets losing their Welcome Page

Do you have "Allow management of content types" set to Yes in the Document Set Library? I have the same problem (Welcome Page disappearing) and I have allowed management of content types. When I set "...
user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible