Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

    Default EZ-Pages TOC Sidebox - Dynamic Sidebox Headers?

    Hello,

    I used this Add-On in my website: http://www.zen-cart.com/index.php?ma...roducts_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":

    Code:
    <?php
      define('BOX_HEADING_EZ_PAGES_TOC', 'Information');
    ?>
    Thanks!

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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.
    Attached Files Attached Files

  3. #3
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

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

    Quote Originally Posted by niccol View Post
    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!!!

  4. #4
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

    Default 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!

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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.
    Attached Files Attached Files

  6. #6
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

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

    Quote Originally Posted by niccol View Post
    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!!

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

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

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

  8. #8
    Join Date
    Jun 2010
    Posts
    207
    Plugin Contributions
    1

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

    Quote Originally Posted by niccol View Post
    Again - this is a jump into the unknown (and untested)
    PERFECT!! Thank you!!

  9. #9
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

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

    You are more than welcome.

 

 

Similar Threads

  1. EZ-Pages TOC Sidebox
    By andywph in forum Addon Sideboxes
    Replies: 0
    Last Post: 4 Feb 2010, 06:34 AM
  2. TOC Sidebox Heading based on Chapter
    By charagg in forum Basic Configuration
    Replies: 1
    Last Post: 10 Apr 2009, 11:17 PM
  3. EZPages TOC Sidebox
    By Ajeh in forum Addon Sideboxes
    Replies: 18
    Last Post: 7 Dec 2008, 05:55 PM
  4. ezpages toc sidebox vs multilingual
    By ndudman in forum Addon Sideboxes
    Replies: 0
    Last Post: 29 Aug 2008, 04:31 PM
  5. Replies: 6
    Last Post: 12 Nov 2007, 04:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg