geek space web solutions

Identical Icons in components administration menu

Thursday, 22 April 2010 21:31
Sometimes, when you install several components in Joomla, errors occur in the "Components" menu.
Identical icons appear...

icone joomla bug

The reason is simply that joomla generates in the "Administration console CSS" two classes which have same name (and therefore a class overrides the other).

style css icone joomla
This style is generated in php with a call to the following url: index.php?option=com_content
We can say that it does not help much ...


Solution
After some research, I found out which file was generated corresponding css styles the administration menu of Joomla.
The file you have to modify to correct the problem is the following:

administrator \ modules \ mod_menu \ menu.php

Go getIconClass function on line 138 (my version of joomla is 1.5.15)
Add the two lines:
$array_exploded = explode ("/", $identifier); 
$class = $array_exploded[1]."_".$class;
just before
$this-> _css .= "\n.icon-16-$class (\n". 
"\tbackground: url($identifier) no-repeat; \n".
")\n "

This is the result ;-):

icone joomla good

There are of course other ways to solve such problems ...

 

Add comment


Security code
Refresh

Sections


Last articles

Effet Noir et blanc ou Nivea... Identical Icons in component... XML Manager : XML online edi... Cibler un élément DOM d'aprè... Résoudre l'erreur : "Error i... Disable or change Ionic page... Utiliser l'opacité d'un masq... firstElementChild / firstChi... Présentation de CoffeeScript... Clickable area and Hand curs...

Sondages

Do you think HTML5 can completely replace Flash ?
 
Would you be interested in an online XML editor ?
 

Paypal

paypal

Code du plugin Joomla AutoSEO 1.2 par www.geek-space.fr