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

Application BeerMe!... Gérer les polices avec la bi... Utiliser la Squeezebox de Jo... Montage PC : Ventirad COOLER... embedFonts et styleSheet - I... MorfeoShow : Choses à savoir... Lecteur MP3 - SylPlayer... Cibler un élément DOM d'aprè... Premiers pas en Objective-C... Activer le débogage USB sur ...

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