編集

次の方法で共有


Add-SPOListDesign

Creates a new list or document library design available to users when they create a new list or document library from site contents, certain site home pages, the SharePoint home page, the Microsoft Lists app, Microsoft Teams, or Office.com.

Syntax

Add-SPOListDesign
   -Title <String>
   -SiteScripts <SPOSiteScriptPipeBind[]>
   [-Description <String>]
   [-ThumbnailUrl <String>]
   [-TemplateFeatures <String[]>]
   [-ListColor <SPOListDesignColor>]
   [-ListIcon <SPOListDesignIcon>]
   [<CommonParameters>]

Description

Creates a new list or document library design available to users when they create a new list or document library from the SharePoint home page, the Microsoft Lists app, Microsoft Teams, or Office.com.

List designs will be available in UI where lists are created, and document library designs will be available in UI where document libraries are created. The difference is based on the "templateType" of the site design used. "templateType" 100 is for Lists, "templateType" 101 is for document libraries.

Examples

Example 1

PS > Add-SPOListDesign
    -Title "Contoso customer tracking"  
    -Description "Tracks key customer data in a list"  
    -SiteScripts "<ID>"  
    -ListColor Orange  
    -ListIcon BullseyeTarget  
    -Thumbnail "https://contoso.sharepoint.com/SiteAssets/site-thumbnail.png"

This example creates a new list or document library design.

Parameters

-Description

The display description of the list or document library design.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ListColor

Default color associated with the list when creating the list.

Type:SPOListDesignColor
Accepted values:DarkRed, Red, Orange, Green, DarkGreen, Teal, Blue, NavyBlue, BluePurple, DarkBlue, Lavendar, Pink
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ListIcon

Default icon associated with the list when creating the list.

Type:SPOListDesignIcon
Accepted values:Bug, Calendar, BullseyeTarget, ClipboardList, Airplane, Rocket, Color, Insights, CubeShape, TestBeakerSolid, Robot, Savings
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SiteScripts

An array of one or more site scripts. Each is identified by an ID. The scripts run in the order listed.

Type:SPOSiteScriptPipeBind[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TemplateFeatures

Set of features that the template comes with. It is displayed as a bulleted list when the user is looking at the template preview in the list or document library creation dialog.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ThumbnailUrl

The URL of a thumbnail image. If none is specified, SharePoint uses a generic image. Recommended size is 400 x 300 pixels.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Title

The display name of the list or document library design.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object