Forums / Templates, Stylesheets, Page Layout / Adding a new page 5 in 'more information sidebox?

Adding a new page 5 in 'more information sidebox?

Locked

Started by pilot on 15 Jul 2006, 7:51 PM · Views: 4,225

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
15 Jul 2006, 7:51 PM
#1
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

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

16 Jul 2006, 12:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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
    $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
<?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
define('BOX_INFORMATION_PAGE_X', 'Click here for page x');
?>
  1. 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.

16 Jul 2006, 11:04 AM
#3
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

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 ?

16 Jul 2006, 3:03 PM
#4
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

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 ?

16 Jul 2006, 4:11 PM
#5
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

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

Laura M Collins Invitation Designs

"The best way to navigate in a new area is to first get totally lost in it."...Mike L. Stein

16 Jul 2006, 4:44 PM
#6
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

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....

Laura M Collins Invitation Designs

"The best way to navigate in a new area is to first get totally lost in it."...Mike L. Stein

16 Jul 2006, 8:08 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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?main_page=product_contrib_info&products_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.

16 Jul 2006, 9:00 PM
#8
designbydemeter avatar

designbydemeter

Zen Follower

Join Date:
Jun 2006
Location:
Taos,NM
Posts:
225
Plugin Contributions:
0

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

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

Laura M Collins Invitation Designs

"The best way to navigate in a new area is to first get totally lost in it."...Mike L. Stein

11 Aug 2006, 1:00 PM
#9
peterbkk avatar

peterbkk

Zen Follower

Join Date:
Jun 2006
Posts:
178
Plugin Contributions:
0

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

14 Aug 2006, 7:43 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.