Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Lowdown on adding pages to INFORMATION Sidebox

Lowdown on adding pages to INFORMATION Sidebox

Locked

Views: 8,444

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
23 Aug 2006, 10:49 AM
#1
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Lowdown on adding pages to INFORMATION Sidebox

I want to add just a couple of links to the INFORMATION Sidebox... One might be ‘How To Pay...’

I have done a bit of searching but cannot decide what would be the easiest way to do it. I know I can edit the defing_pages 2, 3 and 4 in the Define Pages Editor, but I can’t seem to find a way to add the finished products to the INFORMATION Sidebox...

And likewise for the E-Z pages, yes, I can easily make a page there, but again, I could not find an easy way to get it into the sidebox... I believe the E-Z Pages has its own sidebox but I don’t thing two links deserve a separate box and the space it takes up...

I know this has been discussed at length in several posts, but if someone can give me the current best way to go, I would appreciate it..

Thanks!

23 Aug 2006, 10:30 PM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,844
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

go to admin:

configure-define pages status

you can turn page 2,3,4 on there

24 Aug 2006, 4:40 AM
#3
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

Hi,

Thanks, have turned on Page 1 , 2 etc in Configuration/Define Page Status, but they still do not show up... I have the value for them set to 1. I can make the other items in there appear or disappear (Shipping, Privacy etc.) but not the Pages...

I should mention that Page 1, 2 etc appear in the site map, but not in the Information Sidebox.

What am I missing?

29 Aug 2006, 3:24 PM
#4
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

Peace Freak:

Hi,

Thanks, have turned on Page 1 , 2 etc in Configuration/Define Page Status, but they still do not show up... I have the value for them set to 1. I can make the other items in there appear or disappear (Shipping, Privacy etc.) but not the Pages...

I should mention that Page 1, 2 etc appear in the site map, but not in the Information Sidebox.

What am I missing?

You're not really missing anything. There are 2 seperate boxes that are named similarly. One is named just "Inoformation" and the other is names More Information. I too would like to know if there is an interface for the "information" sidebox. Spcifically is there a way to add items to the sidebox without having to edit a file. It seems that under ADMIN > Configuration > Define Pages Status allow a page to be shown or not, but I cannot edit the title of a page or add a page. Removing of a page would be great as well.

29 Aug 2006, 3:54 PM
#5
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

I see! You were right. Now that I have turned on the More Information Sidebox I can see the extra pages I have made. I am going to mess around a bit more and see if there is an easy way to get everything to appear in the Information Sidebox.

18 Mar 2007, 6:44 PM
#6
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

Peace,

Did you find a fix for this?

18 Mar 2007, 7:39 PM
#7
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

OK...answer found!

File Location: **includes/YOURTEMPLATE/sidebox/tpl_information.php

Go to line (near or around) 14.

Find this section of code:
**```
for ($i=0; $i<5; $i++) {
$content .='<li>'.preg_replace('/^([^>]+>)/i', '$1', $information[$i]) . '</li>' . "\n";
}


For example, I changed mine from "5" to "30":

for ($i=0; $i<30; $i++) {
$content .='<li>'.preg_replace('/^([^>]+>)/i', '$1', $information[$i]) . '</li>' . "\n";
}


This fix just gives a bit more control in your display as you tweak the cosmetic portion of your site. 

I hope this helps you all.
19 Mar 2007, 7:30 AM
#8
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

Hi,

Actually, I could not find an easy solution and gave up due to time restraints...

Thanks for your input on this. When I next have some time I would like to give things are try.

Keep us up to speed on your progress, and final recommendations, if you can.

1 Apr 2007, 10:22 PM
#9
cheersdude avatar

cheersdude

New Zenner

Join Date:
Mar 2007
Location:
Drouin, Melbourne, Australia
Posts:
5
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

Thanks Rabbcon, your post has helped me out, I wanted to drop the Gift Certificate, Discount Coupons & Unsubcribe Newsletter so I just changed maximum pages to 5 ;)

2 Apr 2007, 5:36 AM
#10
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

I'm glad it helped you.

23 May 2007, 9:11 AM
#11
troo avatar

troo

New Zenner

Join Date:
Apr 2007
Location:
barnsley, south yorkshire, uk
Posts:
24
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

i have a problem with the more information sidebox, i have added 2 extra pages but they dont link, i have gone to the define page status and they are not there, but in ez pages they are showing and on my shop front too. can anyone see where i am going wrong :frusty:

23 May 2007, 1:35 PM
#12
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

troo:

i have a problem with the more information sidebox, i have added 2 extra pages but they dont link, i have gone to the define page status and they are not there, but in ez pages they are showing and on my shop front too. can anyone see where i am going wrong :frusty:

EZ Pages are different and do not show up under the define pages. EZ Pages have their own side box. If you want to add links to pages to the information side box you'll have to create a custom file in your template folder. You can find the original template file in /ncludes/modules/sideboxes/ the filename is information.php. Copy that into /includes/modules/sideboxes/[your template folder]/information.php and edit it to include your link.

If you're thinking, "why don't I just edit the original file?" it's because it will get overwritten if you do an upgrade, which means you'll have to remake all the extra links. look here http://www.zen-cart.com/wiki/index.php/Developers_API_Overrides and you'll see how the system works with predefined ways to override the original template and modules.

You do have another option since you've already created EZ pages and that is to re-create the pages you want from the information side box as EZ pages, turn off the information side box and turn on the EZ pages side box. It may be a bit of work to recreate the extra pages, but I'm thinking it's better then having to use define pages for some things and then EZ pages for the other items you've created as EZ pages already. I'm not certain how to make links to the EZ pages, but I guess you could do a cut and paste from the browser's address bar into the information.php and get the information side box working like that.

Hope this helps. :D

24 May 2007, 12:48 PM
#13
troo avatar

troo

New Zenner

Join Date:
Apr 2007
Location:
barnsley, south yorkshire, uk
Posts:
24
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

thanks for the advice, the pages link but the content of the pages are not showing, have i missed something out when linking the pages.Can anyone help please:frusty:

24 May 2007, 4:46 PM
#14
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

troo:

thanks for the advice, the pages link but the content of the pages are not showing, have i missed something out when linking the pages.Can anyone help please:frusty:

I do not understand what you are saying. I can not imagine why your content would not show unless your font color is the same color as your page background color. Do you have any links you can show us where this is happening?

25 May 2007, 10:00 AM
#15
troo avatar

troo

New Zenner

Join Date:
Apr 2007
Location:
barnsley, south yorkshire, uk
Posts:
24
Plugin Contributions:
0

Re: Lowdown on adding pages to INFORMATION Sidebox

i have created the extra pages by copying and pasting in the relevant directories (i think) and made them in the define pages editor, i have managed to link them but when i click to open them there is just a back button and no subject content. Sorry i have no links to show. is there anything else i need to do, can anyone help please :frusty:

10 Feb 2009, 11:24 PM
#16
fusionsp avatar

fusionsp

Zen Follower

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

Re: Lowdown on adding pages to INFORMATION Sidebox

Peace Freak:

Hi,

Thanks, have turned on Page 1 , 2 etc in Configuration/Define Page Status, but they still do not show up... I have the value for them set to 1. I can make the other items in there appear or disappear (Shipping, Privacy etc.) but not the Pages...

I should mention that Page 1, 2 etc appear in the site map, but not in the Information Sidebox.

What am I missing?

ok, i cant find where you can change the values to add or remove items from this box. which file is this located in?