Andy Black wrote:
> Has anyone else run into the following issue?
> 
> I am trying to show an icon in a custom menu item (that is, it's in my 
> configuration files).  If I put the graphic file in the XXE installation 
> directory addon\config\common\icons, then the icon shows up, but if I 
> put in with my other configuration files, the icon does not show.
> 
> For example, if I have
> 
> <cfg:item command="myCommand" label="_My label" 
> icon="xxe-config:common/icons/myicon.png"/>
> 
> the icon renders in my menu, but if I use
> 
> <cfg:item command="myCommand" label="_My label" 
> icon="%c/configuration/myicon.png"/>
> 
> the icon does not show.
> 
> Any ideas as to what am I not understanding here?
> 

* Variable "%c" is substituted only in macro and process commands.
<cfg:item> is part of a menu and not of a command.

* Unlike "%c", "xxe-config:" is not a variable. An URL like
"xxe-config:common/icons/myicon.png" works (almost) everywhere simply
because XXE_install_dir/addon/config/catalog.xml contains:

---
  <rewriteURI uriStartString="xxe-config:" rewritePrefix="." />
---

* Variable "%c" is not needed in the above case. Simply use an URL which
is *relative* to the URL of the file containing the <cfg:item> element.

Reply via email to