[SOLVED] component icon on toolbar - Joomla! Forum - community, help and support


hi,

i'm creating new component joomla 2.5. surprise discover documentation available on http://docs.joomla.org/developing_a_mod ... oller_(mvc)_component_for_joomla!2.5_-_part_10#helloworld.xml deals adding particular icon/image component toolbar with:

code: select all

$document = jfactory::getdocument();
$document->addstyledeclaration('.icon-48-helloworld {background-image: url(../media/com_helloworld/images/tux-48x48.png);}');


however discovered in case icon has css class called ".icon-48-generic"
on several components bought or downloaded, each have own class , has nothing in common "generic" problem ?

or normal , call icon-48-generic ?

thx.

ok interested in solution, here is:

code: select all

jtoolbarhelper::title(jtext::_('com_component_title'), 'part-of-icon-class');


therefore component icon have class named: "icon-48-part-of-icon-class"
:-)





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support