Where JToolBarHelper finds icons

Someday this post could save you an hour: do you need to use JToolBarHelper::custom() within Joomla 1.5.x? The icons that it calls by default are placed in administrator/templates/khepri/images/toolbar/ (substitute khepri with the name of your non standard administrator template if you have one) and if you want to use, for example, icon-32-help.png, you have to write something like
JToolBarHelper::custom('up0', 'help.png', 'help.png', 'up', false);
In other words, you have to pass the filename without the starting icon-32- string. If the previous case is not sufficient for you and you want to pass to custom() your custom icon, read this post.

Last update: 2007-10-12

If you enjoyed this post, make sure you subscribe to my RSS feed!

2 Responses to “Where JToolBarHelper finds icons”


  1. 1 Martin X. Moleski, SJ

    Carlo,

    You saved me the promised hour.

    Very much appreciated!

    There were lots of other twists and turns in the road. Narrative and screen captures here:

    http://moleski.net/dokuwiki/doku.php/blog/rsg2

    I’m a little weak in Italian–OK, not far from completely cluess, if truth be told. I find myself wanting to say “Molto bene! Grazie!” Or something to that effect.

    Marty

  2. 2 Carlo

    Martin: you are welcome. “Molto bene! Grazie!” is correct Italian and its effect is fine. :)

Leave a Reply