Forums / Templates, Stylesheets, Page Layout / Combine main nav and EZ pages

Combine main nav and EZ pages

Locked

Views: 1,200

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
19 Feb 2008, 11:42 AM
#1
lizzyb avatar

lizzyb

New Zenner

Join Date:
Jan 2008
Posts:
34
Plugin Contributions:
0

Combine main nav and EZ pages

Hi,

can someone tell me if its possible to combine the navigation bar which normally displays at the very top:

HOME LOGIN MY ACCCOUNT CHECKOUT

with the EZ pages.

Basically I want my main header image and just one navigation line underneath. I know how to move the main navigation under the image but I cant get to combine it with EZ pages which always displays in another line underneath.

Thanks
Liz

19 Feb 2008, 1:33 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Combine main nav and EZ pages

The second line of navigation is in a DIV with a class of navBreadCrumb, while the main nav is, you guessed it, in a DIV with class navMain (inside the navMainWrapper div).

This means it will be very difficult to do what you want. Every page of products listing, products detail, Information and More Information sideboxes, and pretty much anything except your home page uses this second line of navigation.

You'd have to do a lot of rewriting throughout the core code to merge the two lines, I think.

HTH

Rob

Breakfast: the most important donut of the day.

19 Feb 2008, 1:56 PM
#3
lizzyb avatar

lizzyb

New Zenner

Join Date:
Jan 2008
Posts:
34
Plugin Contributions:
0

Re: Combine main nav and EZ pages

Hmm - not the answer i wanted to hear but thanks for your honesty!

I have seen this effect on may prebought templates But I dont want to buy these as from looking at the source codee they are an unrecognisable rewrite of Zencart.

I was wondered if there was a clever way of putting the home, login etc into internal link pages in EZ pages. I just dont know what code i would put in though. Home page would be strightforward enough but the login etc would be an 'IF' statement judging on if you are already logged in......

Has anyone tried this with any success?

Thanks

19 Feb 2008, 8:58 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Combine main nav and EZ pages

And now, having made it sound like a big deal, I looked a little further (search term "breadcrumb Home" in the forum's search field) and saw lots of posts about this -- or at least relevant to what you want to do.

Most people are simply concerned with changing aspects of the breadcrumbs, not removing them entirely or even merging them.

But if you're a codaholic, you can start at ../includes/templates/-your-template-/common/tpl_header.php. That's the file that assembles the header stuff, not surprisingly. There is also a includes/classes/breadcrumb.php file that you'd likely have to look at.

We are now well out of my league, so others will have to chime in. But as a personal note, I appreciate the breadcrumbs being separate from the site navigation. Sure it looks redundant at times, but when you're down in the middle of the site it helps to be able to back up to just where you want.

HTH

Rob

Breakfast: the most important donut of the day.

19 Feb 2008, 9:17 PM
#5
lizzyb avatar

lizzyb

New Zenner

Join Date:
Jan 2008
Posts:
34
Plugin Contributions:
0

Re: Combine main nav and EZ pages

Hi Rob,

Its not actually the 'breadcrumb' bit i want to touch.

Its the part normally at the top. HOME - LOGIN - CART etc that i want to merge with EZ pages.

Thanks for looking though!
Liz

20 Feb 2008, 1:26 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Combine main nav and EZ pages

Sorry, I was getting lost in my own verbiage there. :smartalec:

The EZ-Pages code is in the file ../admin/ezpages.php

That's a very large file of code, and somewhere in there is the part of the code that tells Zen where to put the EZ-Pages links. Finding, extracting and putting that code in the right file is a task for an expert. You may have to pay for that.

Can I ask why the other locations of EZ-Pages links won't work for your site? They don't need to be in that line at top; they can be in the footer or in the Important Links sidebox. (That's where mine are.)

There's a contribution in the Downloads called EZ-Pages TOC Sidebox which may also be of some use to you.

Rob

Breakfast: the most important donut of the day.

20 Feb 2008, 1:36 PM
#7
lizzyb avatar

lizzyb

New Zenner

Join Date:
Jan 2008
Posts:
34
Plugin Contributions:
0

Re: Combine main nav and EZ pages

Thanks Rob - Ill have a look at that download and see if its what I want.

Its not so much the loction of th EZ pages its combining them with the main navigation - HOME - LOGIN and so on. I like sleek sites and I just wanted one horizontal nav with all my links on together.

I have been experimenting again today and got somewhere by copying the code out of TPL_footer.php as that puts EZ and main navigation links together. I then copied that code into my TPL_header and got them combined - although it didnt pick up the log-in (i got HOME - then EZ pages).

Thanks
Liz

20 Feb 2008, 1:50 PM
#8
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Combine main nav and EZ pages

Sounds like you're moving in the right direction. :clap:

If you get it working, you might consider writing out the steps involved and posting them as the final note in this thread. That way, someone else wanting to do the same thing should be able to find the thread and the solution. These forums are huge and the solution might already be in here somewhere but not findable for whatever reason.

Rob

Breakfast: the most important donut of the day.

8 Mar 2008, 3:14 AM
#9
astarkley avatar

astarkley

New Zenner

Join Date:
Nov 2006
Posts:
72
Plugin Contributions:
0

Re: Combine main nav and EZ pages

LizzyB:

Thanks Rob - Ill have a look at that download and see if its what I want.

Its not so much the loction of th EZ pages its combining them with the main navigation - HOME - LOGIN and so on. I like sleek sites and I just wanted one horizontal nav with all my links on together.

I have been experimenting again today and got somewhere by copying the code out of TPL_footer.php as that puts EZ and main navigation links together. I then copied that code into my TPL_header and got them combined - although it didnt pick up the log-in (i got HOME - then EZ pages).

Thanks
Liz
I'm new also and tring to do the same thing. The "FAQ" section will instruct you on how to add "contact us" in the main navigation bar. I belive this is where you will discover the answer to your question and hopefuly mine as well. After I followed the directions for adding "contact us" I then added the exact same code again directly below and then started fooling around with the text in the "BOX_INFORMATION_CONTACT ." area and was able to add text that I wanted however the text will not apear if there are spaces and niether will the page. I know this isn't exactly how the change should be made but perhaps this will get you closer. Please let me know if you figure this out.

<?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
<?php } ?>

https://www.alisgaragesale.com/outboard_exchange

8 Mar 2008, 4:14 AM
#10
astarkley avatar

astarkley

New Zenner

Join Date:
Nov 2006
Posts:
72
Plugin Contributions:
0

Re: Combine main nav and EZ pages

I think this is what you're looking for: https://www.zen-cart.com/tutorials/index.php?article=234

https://www.alisgaragesale.com/outboard_exchange

LizzyB:

Hmm - not the answer i wanted to hear but thanks for your honesty!

I have seen this effect on may prebought templates But I dont want to buy these as from looking at the source codee they are an unrecognisable rewrite of Zencart.

I was wondered if there was a clever way of putting the home, login etc into internal link pages in EZ pages. I just dont know what code i would put in though. Home page would be strightforward enough but the login etc would be an 'IF' statement judging on if you are already logged in......

Has anyone tried this with any success?

Thanks