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

Adding a new page 5 in 'more information sidebox?

Locked

Views: 4,216

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,513
Plugin Contributions:
177

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.

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

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

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.

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,513
Plugin Contributions:
177

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.