Icon for Editor plug-in

Vote:
 

Hi again,

I have a new challenge: Adding an icon to the plug-in I created. (The plugin now works excellent thanks to Marcus)

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

#25761
Nov 04, 2008 15:38
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.