Forums / Addon Sideboxes / EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

Locked

Started by hockey2112 on 21 Jun 2010, 7:43 PM · Views: 2,454

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
21 Jun 2010, 7:43 PM
#1
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

Hello,

I used this Add-On in my website: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=863

(EZ-Pages TOC Sidebox)

Top Nav for reference: EZ Page A | EZ Page B | EZ Page C

I now have a sidebox that has the following:

Information (the box header, this is universal throughout the site)
EZ Page A
EZ Page 1
EZ Page 2

The EZ Pages are different depending the TOC of the main link you click.

Is it possible to do the following?

  1. Eliminate the Information title box (I did this via one of the add-on's php files), and...

  2. Force EZ Page A (the primary page in the TOC) to be the new sidebox header, and have it link to its page.

So... I need for it to look this way once it is finished:

Top Nav: EZ Page A | EZ Page B | EZ Page C

EZ Page A
EZ Page 1
EZ Page 2

Then when you click on EZ Page B in the top nav...

EZ Page B
EZ Page 3
EZ Page 4

etc...

Here is the content of the PHP file that i modified to exclude the word "Information":

<?php
  define('BOX_HEADING_EZ_PAGES_TOC', 'Information');
?>

Thanks!

22 Jun 2010, 7:35 AM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

Just taking a guess with my morning coffee as I don't know the mod.

Attached is a new version of ez_pages_toc.php that might do what you require. The changes to the file are minor and annotated so have a look.

Nick
iszent.com

22 Jun 2010, 3:44 PM
#3
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

niccol:

Just taking a guess with my morning coffee as I don't know the mod.

Attached is a new version of ez_pages_toc.php that might do what you require. The changes to the file are minor and annotated so have a look.

niccol,

THANK YOU, this definitely gets us going in the right direction.

From here, do you see how it would be possible to...

  1. Make the top-most title a link to its own page, and...

  2. Remove the top-most link's "menu link" from the sidebox menu below.

For instance, here's how it is after your awesome modification:

**About Us **(header of sidebox - no link)

About Us (link to aboutus page)
Store Hours (link to storehours page)
Contact (link to contact page)

And here's how we would like it to work:

**About Us **(header of sidebox - link to aboutus page)

Store Hours (link to storehours page)
Contact (link to contact page)

Thanks again! I love the ZC community!!!

22 Jun 2010, 3:59 PM
#4
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

Hmmmm, just found an issue with the code behavior...

When you click on of the sub-pages in the TOC sidebox, the sidebox header changes to that sub-page's title. For instance, when you click "Store Hours" (a sub-page of About Us), here's what happens:

Store Hours (header of sidebox)

About Us (link to aboutus page)
Store Hours (link to storehours page)
Contact (link to contact page)

Whereas we need "About Us to remain as the sidebox's header when you click on any of that TOC's sub page links. Is this possible?

Thanks!

22 Jun 2010, 4:42 PM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

First before a coffee and no I am answering after a beer. Not surprising we aren't getting there in a straight line. What I really need is to see the site. A URL would be great.

But as a stab in the dark try the attached and see what you get.

Nick
iszent.com

22 Jun 2010, 4:53 PM
#6
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

niccol:

First before a coffee and no I am answering after a beer. Not surprising we aren't getting there in a straight line. What I really need is to see the site. A URL would be great.

But as a stab in the dark try the attached and see what you get.

Whatever you're drinking, keep pounding them! The title is now linked, and the title remains the name of the top EZ Page in the TOC, so we are pretty much good to go! The only remaining item is the fact that "About Us" remains in the links in the sidebox even though it is also the "linked header" of the sidebox, but i think we can live with that.

THANK YOU!!

22 Jun 2010, 5:11 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

Again - this is a jump into the unknown (and untested)

Nick
iszent.com

22 Jun 2010, 5:23 PM
#8
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

niccol:

Again - this is a jump into the unknown (and untested)

PERFECT!! Thank you!!

22 Jun 2010, 5:28 PM
#9
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

You are more than welcome.:smile:

Nick
iszent.com