Custom icons using JToolBarHelper::title
Posted: Thu Sep 20, 2007 1:38 am
I'm confused by how to use my own icon in an admin menu. It appears that i need to use some CSS but not sure exactly the procedure.
I've got this in my view.html.php:
Then:
In my general.css file.
Then back to view.html.php:
Just shows the generic.png in my admin toolbar.
Any advice?
I've got this in my view.html.php:
Code: Select all
$document =& JFactory::getDocument();
$document->addStyleSheet('administrator/components/com_biblestudy/css/general.css');
Code: Select all
.icon-48-generic {
background-image:url(../images/header/openbible.gif);
}
Then back to view.html.php:
Code: Select all
JToolBarHelper::title( JText::_( 'Books Manager' ), 'generic.png' );
Any advice?