Review SharePoint Designer Settings
Scenario/Problem: You need to review the overall SharePoint Designer settings for a particular web application on the SharePoint farm.
Solution: Use the Get-SPDesignerSettings
cmdlet.
The Get-SPDesignerSettings
cmdlet enables you to review the current SharePoint Designer settings
for a specified web application. Running this cmdlet with the WebApplication
parameter, shown in Listing 1, displays the current settings, as shown in Figure 1.
Listing 1. Reviewing the SharePoint Designer Settings
Get-SPDesignerSettings -WebApplication "SharePoint - 80"
Figure 1. Get-SPDesignerSettings displays the SharePoint Designer settings.
Configure SharePoint Designer Settings
Scenario/Problem: You need to modify the overall SharePoint Designer settings for a particular web application on the SharePoint farm.
Solution: Use the Set-SPDesignerSettings
cmdlet.
The Set-SPDesignerSettings
cmdlet enables you to modify the SharePoint Designer settings for a
specific web application. Each setting, listed here, is a Boolean
parameter:
• AllowDesigner
• AllowMasterPageEditing
• AllowRevertFromTemplate
• ShowURLStructure
Listing 2 shows a sample modification command line.
Listing 2. Modifying the SharePoint Designer Settings
Set-SPDesignerSettings -WebApplication "SharePoint - 80"
-AllowDesigner:$true -AllowMasterPageEditing:$false
-AllowRevertFromTemplate:$false -ShowURLStructure:$true
The AllowDesigner
parameter
determines whether the sites in the web application can be modified
with SharePoint Designer. The user performing the action must have the
proper permissions to modify the site. The default value is True
.
The AllowMasterPageEditing
parameter determines whether the master pages and page layouts in the
sites of the web application can be modified with SharePoint Designer
by site administrators or users with the appropriate permissions. The
default value is True
.
The AllowRevertFromTemplate
parameter specifies whether site pages can be detached from the site
definition using SharePoint Designer. The default value is True
.
The ShowURLStructure
parameter
specifies whether the URL structure of the web application can be
modified in SharePoint Designer. The default value is True
.
Tip
Use Get-SPDesignerSettings
to validate the modifications.