London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Plug-in (Toolbase) setting the icon

Vote:
 

Hi,

 

As posted earlier on Developer to Developer, I'm having a problem with the IconBase of the ToolBase class.

I have created a tool for inserting flash which works fine, but I want it to be displayed as an icon in the Toolbar. I have set the IconBase of the class in Initialize() to

IconBase = EPiServer.UriSupport.SiteUrl.ToString() + "Plugin/eye.png";

Now, when I run in debug mode and break in the override OnRender method, I get the following icons:

  1. iconOff = http://localhost:6666/EPiOfficeSite/Plugin/eye_off.png
  2. iconOver = http://localhost:6666/EPiOfficeSite/Plugin/eye_over.png 

But when I get out of breakmode and rightclick on the (not displayed) image and look at the properties, I get the following URL:

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

For some reason right before rendering the control it puts the Default Theme path before it.

 

Can someone help me with this please?

Many thanks,

Vincent

#25917
Nov 12, 2008 10:36
* 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.