Tag Info

New answers tagged

1

You can also use Save As template options, if no more sub-site down that. If you have content then check the "include the content " option. Another option, I saw the below powershell, another interesting option. #Get the Source Site $web=Get-SpWeb "http://sharepoint.crescent.com/teams/marketing/us/Policies/" $web.AllowUnsafeUpdates=$true #Set the Target ...


1

use SPWeb.Name to get the internal name or url name of the web use SPWeb.Title to get the display name or title of the web


0

Here is a simple script to add a webpart to a page using PowerShell which is tested and working fine. Please note that to add a webpart to a page export webpart to your local drive .webpart/.dwp file will be in xml format. cls asnp "*sh*" $web=Get-SPweb -Identity "http://SP2013dev.com/sites/addwebpart/" [xml]$webpartxml= Get-Content -Path ...


0

Language in SharePoint that is Displayed to the user is based on a the HTTP Request Header ["Accepted Languages"] or the SharePoint language cookie if the user selects a specific language in the SharePoint language selection menu. This menu is only shown when activating one or more alternative languages on a site collection. If you want to change language ...


1

This error occurs since ServerRelativeUrl property of Web object has not been loaded. You have to explicitly specify to load ServerRelativeUrl property: var list = ctx.Web.Lists.GetByTitle(listTitle); ctx.Load(list,l => l.ParentWeb.ServerRelativeUrl); ctx.ExecuteQuery(); var webUrl = list.ParentWeb.ServerRelativeUrl; or use List ParentWebUrl ...



Top 50 recent answers are included