Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default Adding a new page 5 in 'more information sidebox?

    Adding a new page 5 in 'more information sidebox?
    I have read an unfinished thread on how this is done. The thread was a bit off topic by the time it got round to this subject.

    I have tried some suggestions that didn't work, can anyone throw some light on this ?

    I would think it would involve a database change?

    Thanx

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding a new page 5 in 'more information sidebox?

    HOW TO ADD A LINK IN THE "MORE INFORMATION" SIDEBOX
    ==========================================

    This is ONLY to add a LINK.... this has nothing to do with creating a new page to link TO.

    1. find the /includes/modules/sideboxes/more_information.php file

    2. COPY that file to your /includes/modules/sideboxes/YOURTEMPLATE folder
    (where YOURTEMPLATE is the name of your custom template you've been building ... it matches the name of your template folder in the /includes/templates area)

    3. EDIT that new file: /includes/modules/sideboxes/YOURTEMPLATE/more_information.php

    4. add a line that matches the following syntax, wherever you want it to appear:
    PHP Code:
        $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_2) . '">' BOX_INFORMATION_PAGE_2 '</a>'
    If your site is NOT using more than one language and never will use more than one, you can simply replace FILENAME_PAGE_X with 'page_x'
    and BOX_INFORMATION_PAGE_X with "Click here for page X"

    If you need to support more than one language, you'll need to KEEP the FILENAME_PAGE_X and BOX_INFORMATION_PAGE_X content (changing X appropriately),
    and add new definitions for FILENAME_PAGE_X to a NEW file such as
    /includes/extra_datafiles/my_filenames.php like this:
    PHP Code:
    <?php
    define
    ('FILENAME_PAGE_X''page_x');
    ?>
    and BOX_INFORMATION_PAGE_X to a NEW file such as:
    /includes/languages/english/extra_definitions/my_displayed_texts.php
    PHP Code:
    <?php
    define
    ('BOX_INFORMATION_PAGE_X''Click here for page x');
    ?>
    5. Save the edited/created files to your server.

    Done.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    Ok Thanks, that adds the new page 5 link to the information side box successfully.

    I expected the newly defined page to appear in admin define page status, but it didn't ?

    But how now to point and create a new page 5. when this link is clicked it goes nowhere at the moment beceause there is nowhere for it to go, and goes back to the main page.

    I need to add a new page and also point new liks to say outside references say http://www.somewhereelse.com?

    Is this possible ?

  4. #4
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    Ok I've just discovered EZ Pages can do want I want!!

    Doh!

    The one things that I cannot see is can you ad images to the html page and where would you store them ?

  5. #5
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    Okay - I have an even funkier issue -

    I've followed steps to get my page 5 & 6 in the sidebox, called "about us" and "In the Press"

    When i go into Define HTML - they come up with the appropriate contet. Yipee!~

    Seem to have recreated and defined my pages in all the gazillion right locales.

    However:::::

    When I go to the live site and cilck on About Us; - It says "About us" on the page with not additional content.

    When I go to Press - Its entitled "Press" with no additional content.

    However, again - in the html define area its all there.

    NOW - it seems that its calling page_4 both times. Where is that coming from?

    Almost there - almost there....
    Laura

  6. #6
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    Okay - Update:

    I have the sidebox calling the correct pages 5 & 6.However, there is not content displayed.

    The weird thing is that when I go to my admin and pulldown the define pages editor - the content is there, ready for edits.

    Hmmmm....

  7. #7
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding a new page 5 in 'more information sidebox?

    Take a look at the About-Us Page contribution, and follow the readme for instructions on making your own new pages.
    http://www.zen-cart.com/index.php?ma...roducts_id=182
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    Thank you - I'll desconstruct that and see what happens.

  9. #9
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Adding a new page 5 in 'more information sidebox?

    DRByte,

    Nice description, but how to get the page 5 to actually appear when clicking on the new link in the More Information Box???

    Thanks,
    Peter

  10. #10
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding a new page 5 in 'more information sidebox?

    edit the /includes/modules/sideboxes/YOURTEMPLATE/more_information.php
    and follow the pattern.
    Instructions are in the about-us contribution readme.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Issues with adding 'Page_5' to the More Information Sidebox
    By In2Deep in forum Addon Sideboxes
    Replies: 6
    Last Post: 7 May 2013, 08:04 PM
  2. More Information Sidebox New
    By fredmccay in forum General Questions
    Replies: 2
    Last Post: 1 Oct 2011, 06:01 AM
  3. Problem adding new page title to information sidebox
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Nov 2010, 01:14 PM
  4. Page 2 link in More Information Sidebox
    By lisleuse in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Mar 2010, 02:04 PM
  5. Problem Adding a New Page to Sidebox/Information
    By amacole in forum Basic Configuration
    Replies: 3
    Last Post: 30 Oct 2007, 02:16 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR