I am wrapping up the development of a custom action on a menu item within SharePoint and have a requirement to add a logo to it. I have done some reading on this and it doesn't appear to be as straight forward as one would think. I ran across this thread: http://harouny.com/2013/07/04/customise-icon-ribbon-custom-action-sharepoint-2013/
That link is for a custom action for a ribbon, however. I thought it'd be the same concept so I followed a thread on Microsoft explaining all the attributes of a CustomAction
element. There is an attribute called ImageUrl
but it doesn't appear to be working for me. Below is my code for the Elements.Xml file...
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="dbba1823-1524-4dd9-be18-0b1a547a2a32.LaunchApp"
RegistrationType="FileType"
RegistrationId="xml"
Location="EditControlBlock"
Sequence="10001"
ImageUrl="https://mySite.sharepoint.com/myPics/myIcon.ico"
Title="Launch In Windows">
<!--
Update the Url below to the page you want the custom action to use.
Start the URL with the token ~remoteAppUrl if the page is in the
associated web project, use ~appWebUrl if page is in the app project.
-->
<UrlAction Url="~appWebUrl/Pages/Default.aspx?HostUrl={HostUrl}&ItemURL={ItemUrl}" />
</CustomAction>
</Elements>
I have placed the image into a Picture Library and have also tried using a direct path. I was expecting that if the image was loading but broken, it'd at least give me an 'X' or something but it looks like nothing I do even takes affect.
Thanks in advance for any helpful input!