Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <CustomAction Id="Ribbon.Upload.Button.Edit.ReplacementButton" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0X010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900BC6EC9AF9289476B99640C668F2C50FC0101" Rights ="EditListItems" >
- <CommandUIExtension>
- <CommandUIDefinitions>
- <CommandUIDefinition
- Location="Ribbon.EditingTools.CPInsert.Links.UploadFile">
- <Button Id="Ribbon.Documents.New.UploadButton"
- Command="CustomImageUpload"
- Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
- Image16by16Top="-128"
- Image16by16Left="-80"
- Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
- Image32by32Top="-224"
- Image32by32Left="-64"
- LabelText="$Resources:core,cui_ButInsertDocument;" ToolTipTitle="$Resources:core,cui_ButInsertDocument;" ToolTipDescription="$Resources:core,cui_STT_ButInsertDocument;"
- TemplateAlias="o1" />
- </CommandUIDefinition>
- </CommandUIDefinitions>
- <CommandUIHandlers>
- <CommandUIHandler
- Command="CustomImageUpload"
- CommandAction="javascript:OpenPopUpPageWithTitle('{SiteUrl}/_layouts/SAABFileUpload/AssetUpload.aspx',RefreshOnDialogClose,600,400,'Upload to Central Asset Library')"
- />
- </CommandUIHandlers>
- </CommandUIExtension>
- </CustomAction>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement