Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

LI 'current' for ARI ext menu
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: LI 'current' for ARI ext menu
#13137
LI 'current' for ARI ext menu 13 Years, 8 Months ago Karma: 0
Dear ARI,

I have a request. I have styled the menu with tab-look first level.

The a:link inside the root LI is styled with a color at the bottom.

The root LI (.ux-menu li.ux-menu-item-main) has the tab-look if selected. It then has the class “current” (.ux-menu li.current)

The only problem is that if a child LI is current only the parent a:link gets the class “current”.

I would like to have the root LI get the class “current” if a child is selected.

Is this possible?
The administrator has disabled public write access.
 
#13139
Re:LI 'current' for ARI ext menu 13 Years, 8 Months ago Karma: 760
Hello,

You can modify <joomla_directory>'modules\mod_ariextmenu\mod_ariextmenu\templates\menu.html.php menu template file and add necessary CSS class.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#13142
Re:LI 'current' for ARI ext menu 13 Years, 8 Months ago Karma: 0
Ok,

I understand that the "current" class is added in the 'modules\mod_ariextmenu\mod_ariextmenu\templates\menu.html.php' menu template file


$liClass = $level == 0 ? 'ux-menu-item-main' : '';
if ($hasChilds)
$liClass .= ' ux-menu-item-parent';
$liClass .= ' ux-menu-item' . $menuItem->id;
if ($level == 0)
$liClass .= ' ux-menu-item-parent-pos' . $i;
if ($hlCurrentItem && $menuItem->id == $selectedId)
$liClass .= ' current';


I just don't know how to modify it so that it keeps the class "current" when a child menu item is selected.
What code do I need to add to this?
The administrator has disabled public write access.
 
#13150
Re:LI 'current' for ARI ext menu 13 Years, 8 Months ago Karma: 760
We have sent updated module by email. Updated version adds "current" CSS class to parent elements too.

Regards,
ARI Soft
Last Edit: 2011/04/01 14:13 By admin.
The administrator has disabled public write access.
 
#17590
Re:LI 'current' for ARI ext menu 13 Years, 4 Months ago Karma: 0
Dear ARI-Team

Firstly, thank you for this great extension!

Secondly, could you post the solution to this problem? I'm stuck at the same point: Parent items from active childs don't get "current" added.
I suppose structure changed and the file to manipulate is now modules/mod_ariextmenu/mod_ariextmenu/tmpl/menu.php. But still I'm just not programmer enough to make the necessary changes myself.

Thank you a lot in advance

Dimitrj
The administrator has disabled public write access.
 
#17594
Re:LI 'current' for ARI ext menu 13 Years, 4 Months ago Karma: 760
Hello,

Do you use the latest version of the extension (v. 2.0.8) ?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12