I'm generating some ribbon xml via javascript (for a dynamic menu). This is working fine so far, except that when I try to add the icon, it won't work using the #webresource directive. It does work with the full URL. (xml is Image16by16="</fake/full/path/to/webresource.png") If I try to use $webresource:<webresource.png> it just shows a broken image icon. I've tried using just the file name vs the name with prefix, I've tried with or without the file extension, etc... and nothing is working. If I add it through Ribbon Workbench by searching for the webresource, it works...but when I literally copy/paste that into my xml it doesn't. Tearing my hair out here...any thoughts on why it might be different, or how to fix it?
↧