Component Icons

31 views
Skip to first unread message

Glenn Arkell

unread,
May 8, 2012, 8:30:10 AM5/8/12
to Joomla! General Development
I have a simple component that installs fine and works as expected BUT
my icons don't show in the Component menu and/or sub menu when I'm in
any other component the Admin area. When I am in my components
screens the icons appear, both in the menu and on the header of the
page no problems.

What is the trick to having my icons showing against my component menu
option when I'm in, for example, the User Manager area? Any advice
appreciated.

J!2.5.4 - BEEZ2 template
icons set as classes within my component stylesheet.

Cheers


Glenn

Glenn Arkell

unread,
May 11, 2012, 8:14:00 AM5/11/12
to joomla-de...@googlegroups.com
More information....

style sheet has the following icon pointers
          .icon-16-shopping { background-image: url(../images/icon-16-shopping.png); }
          .icon-48-shopping { background-image: url(../images/icon-48-shopping.png); }

view.html.php has the following pointer to the stylesheet
          $doc->addStyleSheet('../media/com_mycomponent/css/admin.stylesheet.css');
and the following toolbar addition
          JToolBarHelper::title(JText::_('COM_MYCOMPONENT_TITLE_COMPONENTITEM'), 'shopping.png');

mycomponent.xml manifest has the following administration menu item
          <menu img="class:shopping">COM_MYCOMPONENT</menu>

All the above enables the icon to show when the "mycomponent" menu item is selected but when in any other component area the icons don't show.

Any advice and/or guidance greatly appreciated.
Reply all
Reply to author
Forward
0 new messages