Zen Cart Logo
Forums / Basic Configuration / Removing alt_nav links in DHTML menus

Removing alt_nav links in DHTML menus

Locked

Views: 1,949

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Nov 2007, 5:19 AM
#1
thekiwi avatar

thekiwi

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Removing alt_nav links in DHTML menus

A quick question about how to remove the links to alt_nav.php in the DHTML menus in admin.

What I'm trying to achieve is to ensure that if someone clicks on the top level menus in zen cart the alt_nav.php script is not run (so the menus do not change location and the screen gets replaced with all menu options). This would means that to move from the home page, someone must actually select an option from the menu.

I've searched everywhere about how to do this, but just can't find what I need to edit to remove the link to alt_nav.php.

From past posts about this same thing on the forums, I've found that this functionality is not a zen cart bug but a conscious feature. It was intended for users who do not have Javascript. But I would still like to turn it off.

Can anyone please explain how to remove? Please?

13 Nov 2007, 6:29 AM
#2
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Removing alt_nav links in DHTML menus

admin\includes\header.php — Line 176 to 181

<?php
// special spacing for alt_nav.php
  if (basename($PHP_SELF) == 'alt_nav.php') {
?>
<tr><td> </td></tr>
<?php } // alt_nav spacing ?>
13 Nov 2007, 6:44 AM
#3
thekiwi avatar

thekiwi

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Removing alt_nav links in DHTML menus

Thanks for your help - really appreciate your prompt reply. I tried this but it is still not working on my system. Is there something else I need to do?

After making this change, each of the main menu headings in admin still links through to alt_nav.php.

Many thanks again for your help in advance.

13 Nov 2007, 7:37 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Removing alt_nav links in DHTML menus

You'll have to alter every reference in the admin for the links generated using FILENAME_ALT_NAV

13 Nov 2007, 9:20 AM
#5
thekiwi avatar

thekiwi

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Removing alt_nav links in DHTML menus

Thank you so much - with that info I worked it out.

Cheers and thanks again to everyone who helped. I REALLY appreciate it :)

8 Feb 2009, 11:40 AM
#6
jami1955 avatar

jami1955

New Zenner

Join Date:
Feb 2008
Location:
Boulder, CO, Dec 2: India
Posts:
89
Plugin Contributions:
0

Re: Removing alt_nav links in DHTML menus

Hi, I've got the same problem, please specify how to alter this code.... I should just // erase it? Or replace it with some other code? It seems like on a brand new installation such as I have here, it should not default to an alternative layout....

thanks, please specify what to replace the FILENAME_ALT_NAV (or surrounding code) with in my admin files.
JSC