SHARE
TWEET

Customaction

a guest May 10th, 2012 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <CustomAction Id="Ribbon.Upload.Button.Edit.ReplacementButton" Location="CommandUI.Ribbon" RegistrationType="ContentType" RegistrationId="0X010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900BC6EC9AF9289476B99640C668F2C50FC0101" Rights ="EditListItems" >
  2.     <CommandUIExtension>
  3.       <CommandUIDefinitions>
  4.         <CommandUIDefinition
  5.           Location="Ribbon.EditingTools.CPInsert.Links.UploadFile">
  6.           <Button Id="Ribbon.Documents.New.UploadButton"
  7.            Command="CustomImageUpload"
  8.            Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
  9.            Image16by16Top="-128"
  10.            Image16by16Left="-80"
  11.            Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
  12.            Image32by32Top="-224"
  13.            Image32by32Left="-64"
  14.            LabelText="$Resources:core,cui_ButInsertDocument;" ToolTipTitle="$Resources:core,cui_ButInsertDocument;" ToolTipDescription="$Resources:core,cui_STT_ButInsertDocument;"          
  15.            TemplateAlias="o1" />
  16.         </CommandUIDefinition>
  17.       </CommandUIDefinitions>
  18.       <CommandUIHandlers>
  19.         <CommandUIHandler
  20.             Command="CustomImageUpload"
  21.            CommandAction="javascript:OpenPopUpPageWithTitle('{SiteUrl}/_layouts/SAABFileUpload/AssetUpload.aspx',RefreshOnDialogClose,600,400,'Upload to Central Asset Library')"
  22.             />
  23.       </CommandUIHandlers>
  24.     </CommandUIExtension>
  25.   </CustomAction>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top