Active class for first level <li> in mod_cpmenu

  • pmarty
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
10 Anni 9 Mesi fa #1362 da pmarty
Hello,

When enbaling "show field name and field name linkable", it seems that the first level of li doesn't display .active class in the mod_cpmenu.

I need to specify css for that level, please could you tell me how to fix this little problem?

Thanks
Philippe

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
10 Anni 9 Mesi fa #1365 da andrea_4g
Risposta da andrea_4g al topic Active class for first level <li> in mod_cpmenu
I'm not able to properly answer your question until the end of this week. It will be my priority soon thereafter.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • pmarty
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
10 Anni 9 Mesi fa - 10 Anni 9 Mesi fa #1370 da pmarty
Thanks :)
Ultima Modifica 10 Anni 9 Mesi fa da pmarty.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
10 Anni 9 Mesi fa #1376 da andrea_4g
Risposta da andrea_4g al topic Active class for first level <li> in mod_cpmenu
I confirm that the parent item is not given the active class.

It can be done with a tiny modification to file modules/mod_cpmenu/mod_cpmenu.php
Add after line 219:
Code:
if(empty($tagGroup)){ $tagGroup = substr($tagName, 0, strpos($tagName, ':')); }

After the modification the block of lines 215-223 will look like this:
Code:
if(JRequest::getCmd('option') == 'com_customproperties') { $tagName = JRequest::getVar('tagName', ''); $tagId = JRequest::getVar('tagId', ''); $tagGroup = JRequest::getVar('tagGroup', ''); $tagGid = JRequest::getVar('tagGid', ''); if(empty($tagGroup)){ $tagGroup = substr($tagName, 0, strpos($tagName, ':')); } }

This modification will be permanently added to the next release of Custom Properties.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.164 secondi