/
customaction_add.xml
78 lines (74 loc) · 4.59 KB
/
customaction_add.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="utf-8" ?>
<!--
Base template: Goal is to verify that all custom action properties work as expected. please keep this XML up to date if additional properties are added.
Possible attributes are:
Name (*)
Location (*)
Description (resource)
Title (parsed, resource)
Group
CommandUIExtension (parsed)
ImageUrl (parsed)
RegistrationId
RegistrationType
ScriptBlock (parsed)
ScriptSrc (parsed, excluding ~site and ~sitecollection)
Sequence
Url (parsed)
Rights
Enabled
-->
<pnp:ProvisioningTemplate ID="customaction_base" Version="1" xmlns:pnp="http://schemas.dev.office.com/PnP/2021/03/ProvisioningSchema">
<pnp:CustomActions>
<pnp:SiteCustomActions>
<pnp:CustomAction Name="CA_1" Description="ca 1" Group="SiteTasks" Location="Microsoft.SharePoint.SiteSettings" Title="CA 1 Title" Sequence="1000" Url="https://spmanaged.azurewebsites.net/pages/index.aspx?SPHostUrl={sitename}" Rights="31" Enabled="true"/>
<pnp:CustomAction Name="CA_2" Description="ca 2" Group="SiteActions" Location="Microsoft.SharePoint.StandardMenu" Title="CA 2 Title" Sequence="1100" Url="https://spmanaged.azurewebsites.net/pages/index.aspx?SPHostUrl={0}" Rights="31" Enabled="true"/>
<pnp:CustomAction Name="CA_5" Description="ca 5" Group="SiteActions" Location="Microsoft.SharePoint.StandardMenu" Title="CA 5 Title" Sequence="1100" Url="https://spmanaged.azurewebsites.net/pages/index.aspx?SPHostUrl={0}" Rights="31" Enabled="false"/>
<pnp:CustomAction Name="CA_3" Description="ca 3" Title ="CA 3 Title" ImageUrl="{site}/SiteAssets/icons/image.png" Location="CommandUI.Ribbon" RegistrationId="101" RegistrationType="List" Enabled="true">
<pnp:CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.Copies.Controls._children">
<Button
Id="Ribbon.Documents.Copies.OfficeDevPnPDownloadAll"
Command="OfficeDevPnP.Cmd.DownloadAll"
Image16by16="{site}/SiteAssets/icons/DownloadAll16x16.png"
Image32by32="{site}/SiteAssets/icons/DownloadAll32x32.png"
LabelText="Download All"
Description="Download all files separately"
ToolTipTitle="Download All"
ToolTipDescription="Download all files separately"
TemplateAlias="o1"
Sequence="15"/>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Documents.Copies.Controls._children">
<Button
Id="Ribbon.Documents.Copies.OfficeDevPnPDownloadAllAsZip"
Command="OfficeDevPnP.Cmd.DownloadAllAsZip"
Image16by16="{site}/SiteAssets/icons/DownloadAllAsZip16x16.png"
Image32by32="{site}/SiteAssets/icons/DownloadAllAsZip32x32.png"
LabelText="Download All as Zip"
Description="Download all files as single Zip"
ToolTipTitle="Download All as Zip"
ToolTipDescription="Download all files as single Zip archive"
TemplateAlias="o1"
Sequence="20" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="OfficeDevPnP.Cmd.DownloadAll"
CommandAction="javascript:PnP.Framework.RibbonManager.invokeCommand('DownloadAll');"
EnabledScript="javascript:PnP.Framework.RibbonManager.isListViewButtonEnabled('DownloadAll');"/>
<CommandUIHandler
Command="OfficeDevPnP.Cmd.DownloadAllAsZip"
CommandAction="javascript:PnP.Framework.RibbonManager.invokeCommand('DownloadAllAsZip');"
EnabledScript="javascript:PnP.Framework.RibbonManager.isListViewButtonEnabled('DownloadAllAsZip');"/>
</CommandUIHandlers>
</pnp:CommandUIExtension>
</pnp:CustomAction>
</pnp:SiteCustomActions>
<pnp:WebCustomActions>
<pnp:CustomAction Name="CA_4" Description="ca 4" Group="SiteTasks" Location="Microsoft.SharePoint.SiteSettings" Title="CA 4 Title" Sequence="1000" Url="https://spmanaged.azurewebsites.net/pages/index.aspx?SPHostUrl={0}" Rights="31" Enabled="true"/>
</pnp:WebCustomActions>
</pnp:CustomActions>
</pnp:ProvisioningTemplate>