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

4 Comments

  1. Posted February 20, 2008 at 4:11 am | Permalink

    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. Posted February 20, 2008 at 10:11 am | Permalink

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

  3. Luis
    Posted August 13, 2008 at 4:17 am | Permalink

    Grazie Signore! It saved me an hour as well.

  4. Posted September 24, 2008 at 4:28 pm | Permalink

    Saved me an hour as well. Thanks a lot!

One Trackback

  1. [...] Temporaneità [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*