Zen Cart Logo
Forums / Bug Reports / [Done v155a] Admin, alt_nav not working

[Done v155a] Admin, alt_nav not working

Views: 6,146

Results 1 to 18 of 18
24 Mar 2016, 9:44 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

[Done v155a] Admin, alt_nav not working

zen-cart-v1.5.5-03212016

I am finding the alt_nav links do not work at all from the main menu items.
Commenting out the boostrap javascript in header.php restores this functionality.

24 Mar 2016, 9:55 AM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: [Done v155a] Admin, alt_nav not working

local Xammp server php 5.6.8...Windows 10, tested with FF, chrome, IT and Edge, all the same.

24 Mar 2016, 3:42 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: [Done v155a] Admin, alt_nav not working

Hmmm ... I was considering removing alt_nav altogether.

How much do you rely on alt_nav? And with v155 admin menu changes is it even needed?

24 Mar 2016, 4:09 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,067
Plugin Contributions:
56

Re: [Done v155a] Admin, alt_nav not working

DrByte, if you've got a small screen (like 1024x768) and a bunch of configuration items, it can be a real PITA to navigate to the last one in the list (albeit less of a pain with the ZC1.5.5 admin).

24 Mar 2016, 4:21 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: [Done v155a] Admin, alt_nav not working

On v155 I'm not seeing where alt_nav would provide any benefit

24 Mar 2016, 4:33 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,067
Plugin Contributions:
56

Re: [Done v155a] Admin, alt_nav not working

The alt_nav page is static; while the semi-static menu drop-downs in v155 do "hang around", they're also subject to mis-clicking (and thus frustration).

24 Mar 2016, 5:01 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: [Done v155a] Admin, alt_nav not working

But the dropdowns have a larger "touch" space, so are more clickable, compared to the old tiny text links in alt_nav

25 Mar 2016, 8:05 PM
#8
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: [Done v155a] Admin, alt_nav not working

Well I have so many extra configs they are way off the bottom of the screen (laptop, not mobile).
Scroll on mousepad is rubbish at best so just for me yes its useful.

I sure you all in dev-land are fed up of us finding these little bugs post-release when it's been available in beta for months, but I'm also sure many (business/non-devs) people could not justify spending time finding these things until 1.55 was a proper release.

Anyway I found there is an issue about this with bootstrap and drops downs as can be found
http://stackoverflow.com/questions/12630188/allow-click-on-twitter-bootstrap-dropdown-toggle-link?lq=1
https://github.com/angular-ui/bootstrap/issues/2156

And in my meagre testing I found that changing this in header navigation allowed it to work. Can't say I had the energy to understand why (after a day in the snow).
Useful to know what others find:

<a href="<?php echo zen_href_link(FILENAME_ALT_NAV) ?>" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><?php echo $menuTitles[$menuKey] ?><b class="caret"></b></a>
to

<a href="<?php echo zen_href_link(FILENAME_ALT_NAV) ?>" class="dropdown-toggle **disabled**" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><?php echo $menuTitles[$menuKey] ?><b class="caret"></b></a>

26 Mar 2016, 1:44 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: [Done v155a] Admin, alt_nav not working

/admin/includes/header_navigation.php, line 29

torvista:

<a href="<?php echo zen_href_link(FILENAME_ALT_NAV) ?>" class="dropdown-toggle **disabled**" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><?php echo $menuTitles[$menuKey] ?><b class="caret"></b></a>
I'm agreeable with that.

26 Mar 2016, 2:01 PM
#10
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Done v155a] Admin, alt_nav not working

I agree. Thanks for the code to add that function back. Works perfectly!

26 Mar 2016, 3:14 PM
#11
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

Re: [Done v155a] Admin, alt_nav not working

Works perfectly!
Ooohhh no it doesn't.
Stops the dropdown from working when in mobile mode, as you may expect. The word "disabled" was a strong hint...I told you my testing was meagre!

Someone with more javascript knowledge than (which is just about everyone) needs to look at this for few minutes and decide its not work the effort to chase this. I think having the mobile mode working is more important than alt_nav.

26 Mar 2016, 4:05 PM
#12
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Done v155a] Admin, alt_nav not working

CRUD - well I was testing it on my desktop... so works fine that way. Didn't think to test on a tablet. :blush:

torvista:

Ooohhh no it doesn't.
Stops the dropdown from working when in mobile mode, as you may expect. The word "disabled" was a strong hint...I told you my testing was meagre!

Someone with more javascript knowledge than (which is just about everyone) needs to look at this for few minutes and decide its not work the effort to chase this. I think having the mobile mode working is more important than alt_nav.

26 Mar 2016, 4:13 PM
#13
pelicannm avatar

pelicannm

New Zenner

Join Date:
Dec 2009
Posts:
14
Plugin Contributions:
0

Re: [Done v155a] Admin, alt_nav not working

The navigation isn’t working for me, either. This is on a desktop, tested on FF and Chrome. For me, the menu is perpetually collapsed. All the links work, but I have to scroll way down to see the page. If I toggle, it goes from a clean (long) list to a hot mess that’s got text on top of other text.

I also tested the solution here by changing the code to toggle disabled. Had no effect.
I upgraded from 1.5.1 and the upgrade went like a dream. No problems at all. Everything seems to be in working order, except the admin menu. Thanks.

26 Mar 2016, 4:19 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: [Done v155a] Admin, alt_nav not working

Pelicannm:

The navigation isn’t working for me, either. This is on a desktop, tested on FF and Chrome. For me, the menu is perpetually collapsed. All the links work, but I have to scroll way down to see the page. If I toggle, it goes from a clean (long) list to a hot mess that’s got text on top of other text.

I also tested the solution here by changing the code to toggle disabled. Had no effect.
I upgraded from 1.5.1 and the upgrade went like a dream. No problems at all. Everything seems to be in working order, except the admin menu. Thanks.

As part of testing the modification, did you clear sessions, cache and possibly log out/log back in or try a browser/device that was not recently being used for earlier testing?

26 Mar 2016, 4:22 PM
#15
pelicannm avatar

pelicannm

New Zenner

Join Date:
Dec 2009
Posts:
14
Plugin Contributions:
0

Re: [Done v155a] Admin, alt_nav not working

Thanks for responding. Yes, I did log out, cleared all cache and cookies. Still happened.

26 Mar 2016, 6:51 PM
#16
pelicannm avatar

pelicannm

New Zenner

Join Date:
Dec 2009
Posts:
14
Plugin Contributions:
0

Re: [Done v155a] Admin, alt_nav not working

Pelicannm:

Thanks for responding. Yes, I did log out, cleared all cache and cookies. Still happened.
My issue is fixed. I had the thought that perhaps some of the files didn't upload properly, so I reuploaded all the files in the /admin/ folder (just the immediate files, not the subfolders & files). This fixed the menu issue. I also checked it on mobile, and now everything is working fine. It must've been in the upload somehow.

29 Mar 2016, 5:59 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: [Done v155a] Admin, alt_nav not working

I'm not clear which scenarios have a real problem then. Please provide more detail.