Plug-in (Toolbase) setting the icon

Vote:
 

Hi all,

Adding an icon to the plug-in I created. Now, I want to just add a png file for an icon but when I do this in my Tool:

protected override void OnInit(EventArgs e) 
{ 
   base.OnInit(e); 
   this.IconBase = EPiServer.UriSupport.SiteUrl.ToString() + "/Plugin/eye.png"; 
}

But the result in the URL to the image is the following:

http://localhost:6666/EPiPlugin/App_Themes/Default/Images/editor/http://localhost:6666/EPiPlugin//Plugin/eye_over.png

 

IOW for some reason it seems to stick http...images/editor in front of the iconbase. Is there some way to circumvent this or are we stuck to using that directory?

 

Thanks in advance for any reply,

Vincent

#25787
Nov 06, 2008 9:35