- Document library Settings > Advanced Settings
You have to select the second option "Display as a Web Page” which will be supported in SPO after the migration:
From PowerShell
The other option to use is the following script which will do that change into all site/subsites for all the existing DocLib from a given SP2007:
function Check-DocumentLibraryOpenSettings([string]$SiteCollectionURL)
{
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null
Write-Host " -------------------------------------------------------- "
Write-Host "Site collection URL to configure:", $SiteCollectionURL -foregroundcolor Red
$Thesite = new-object Microsoft.SharePoint.SPSite($SiteCollectionURL)
#Loop all Sub Sites
foreach($Web in $TheSite.AllWebs)
{
Write-Host "-----------------------------------------------------"
Write-Host "Site Name: '$($web.Title)' at $($web.URL)" -foregroundcolor green
Write-Host "-----------------------------------------------------"
foreach($list in $Web.Lists)
{
#Filter Doc Libs, Eliminate Hidden ones
if(($List.BaseType -eq "DocumentLibrary") -and ($List.Hidden -eq $false) )
{
Write-Host "List Name: '$($List.Title)'", "- Open Option before the change:", $List.DefaultItemOpen -foregroundcolor Magenta
$List.DefaultItemOpen = [Microsoft.SharePoint.DefaultItemOpen]::Browser; #Mode Web Application
#$List.DefaultItemOpen = [Microsoft.SharePoint.DefaultItemOpen]::PreferClient; #Mode MS Office rich client
$List.Update();
}
}
}
Write-Host " -------------------------------------------------------- "
}
cls
Check-DocumentLibraryOpenSettings “http://myWebApplication2007/sites/MySiteCollection”
When you do that change, you can use your Migration tool to push the doclibs in SPO
Fabrice Romelard [MVP]
Original post in french:
Other references used: