Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Flyout Menu highlight current category

Flyout Menu highlight current category

Views: 1,537

Results 1 to 6 of 6
24 Jul 2012, 2:19 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Flyout Menu highlight current category

It is already highlighted on your site:

沐浴&洗发-21
洗发沐浴香波-7

24 Jul 2012, 2:41 AM
#3
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: Flyout Menu highlight current category

Glad to hear your reply, DrByte.
It's highlighted in Classic Menu but not in Flyout Menu. I intentionally leave both categories box there so that you can see the difference.

I tried to add following clause to 'categories_ul_generator.php' but didn't work out:
if ($category['current']) {
if ($category['has_submenu']) {
$result .= '<span class="category-subs-parent">' . $category['name'] . '</span>';
} else {
$result .= '<span class="category-subs-selected">' . $category['name'] . '</span>';
}
} else {
$result .= $category['name'];
}

Could you tell me how to make current category bold in the Flyout Menu, same as that in Classic Menu?
Thank you very much.

24 Jul 2012, 2:37 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flyout Menu highlight current category

I don't know if the flyout menu code has structure to allow current path highlighting (apparently not), but I do know that Categories Dressing has that ability, and can be turned into a flyout menu with the ch_categories option and a few CSS rules added, as has been discussed in the mod's support thread (search the thread for flyout).

25 Jul 2012, 4:52 AM
#5
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: Flyout Menu highlight current category

Thank you for your advice, gjh42. I'll work on it during weekend.

The ideal situation would be a kind of combination of flyout menu and classic menu.
Show (and highlight) subcategories under category when selected (user can turn off via admin if prefer not to show subcategories), and show flyout menu when mouse over.
That will be very user friendly.

28 Jul 2012, 5:06 PM
#6
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: Flyout Menu highlight current category

The ideal situation would be a kind of combination of flyout menu and classic menu.

gjh42,
I followed your instructions and worked out this feature. Thank you.
http://angelcorp.net/zencartscottou/index.php?main_page=product_info&cPath=1_4&products_id=7

The last point I definitely need your help is to make it show subcategories under currently selected category, same as Classic Menu does. In that way, users will have a better idea of their current place. (Probably looks better also.)
Thanks a lot.