Zen Cart Logo
Forums / General Questions / How do I link up my navigation... This seems like it should be easy

How do I link up my navigation... This seems like it should be easy

Locked

Views: 1,237

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Jun 2008, 2:06 AM
#1
maxfieldparrish avatar

maxfieldparrish

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

How do I link up my navigation... This seems like it should be easy

I'm doing a navigation setup similar to the one used as the top nav at apple.com where it requires 1 background image for all the link states. I didn't really consider this until I went in to implement this structure... but how am I supposed to link it up? I need to link each list item to it's category(I will have a specific # of categories so it wont be dynamic), then once each category is hovered on I need the subcategories to display within their own list...which I'm assuming will have to be dynamic... It is easy for me to make look the way I want in html and css but I'm totally lost now on the php and linking this up. I've searched all over the forums and found nothing of use. I set up my top navigation in a list structure like so:

<div id="mainNav"> <ul> <li class="panel1"><a href="index.php"></a></li> <li class="panel2"><a href="#"></a></li> <li class="panel3"><a href="#"></a></li> <li class="panel4"><a href="#"></a></li> <li class="panel5"><a href="#"></a></li> <li class="panel6"><a href="#"></a></li> <li class="panel7"><a href="#"></a></li> <li class="panel8"><a href="#"></a></li> </ul> </div>
4 Jun 2008, 12:35 PM
#3
maxfieldparrish avatar

maxfieldparrish

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: How do I link up my navigation... This seems like it should be easy

I tried inspecting a similar module actually, but I still didn't see what I am supposed to use. Also, I need to target specific categories for the first tier nav (that one is still dynamic) and I need the 2nd tier(hover/flyout state) to be drawn in as a list dynamically. Sorry if any of this was confusing.

4 Jun 2008, 6:51 PM
#4
maxfieldparrish avatar

maxfieldparrish

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: How do I link up my navigation... This seems like it should be easy

anyone?

5 Jun 2008, 1:08 AM
#5
maxfieldparrish avatar

maxfieldparrish

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: How do I link up my navigation... This seems like it should be easy

So, I see that you can target category links with this and modifying the category #:

<a href="index.php?main_page=index&cPath=1"></a>

But, I still don't know how for each of these static links I can tack on their dynamic subcategories for the hover state. Any ideas?

5 Jun 2008, 1:12 PM
#6
maxfieldparrish avatar

maxfieldparrish

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Re: How do I link up my navigation... This seems like it should be easy

I'm not a programmer, I work as a designer so I don't totally get a lot of this php stuff that structures zen cart. I'm just guessing but is there a way to echo an array into a list of links depending on which category I want? Is that how it would work?