Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Altering the Information Sidebox

Altering the Information Sidebox

Locked

Views: 960

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
28 Sep 2009, 9:12 PM
#1
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Altering the Information Sidebox

Very new to Zen Cart. The information sidebox is showing up where I want it, but I want a whole different set of links there. So my question is:

  1. How do I rename/repoint links in the information sidebox and
  2. If there's an easier way (like doing it in the More Information sidebox), I'm all ears...
28 Sep 2009, 9:20 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Altering the Information Sidebox

Most extensible control would be to use the "Important Links" side box that is ALL ezpage links.
All current definepage links can be created as an ezpage "internal link" and any others can be created/added.

Important Links can be re-titled to Information or some other title you prefer

28 Sep 2009, 9:30 PM
#3
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Re: Altering the Information Sidebox

Gotcha. I'll give it a shot. Thanks!

28 Sep 2009, 9:53 PM
#4
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Re: Altering the Information Sidebox

Wow, I'm such a noob. Okay, so I added the sidebox and was able to retitle it using an override in the languages folder.

But I can't seem to find the file that has the list of links.

Here is my site (it's the "Highland Links" sidebox): http://highlandisland.com.previewdns.com/zencart/

I found a tpl_ezpages.php file, but it contains the following:

<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_ezpages.php 2982 2006-02-07 07:56:41Z birdbrain $ */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n"; for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ; } // end FOR loop $content .= '</ul>' . "\n"; $content .= '</div>'; ?>

Not sure where to look at this point.

28 Sep 2009, 10:00 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Altering the Information Sidebox

From the address bar when navigating to links in your "information" side box - grab the last part of the link as:

index.php?main_page=shippinginfo
index.php?main_page=privacy

These are the "internal link" addresses
In your admin > tools > ezpages > insert a new page and add the "internal link" for this page - configure where the page will be and in this case the side box.

28 Sep 2009, 11:25 PM
#6
igendreau avatar

igendreau

New Zenner

Join Date:
Jun 2009
Posts:
49
Plugin Contributions:
0

Re: Altering the Information Sidebox

Great. Works perfect, thank you. One last question (though I doubt that's true)...

How do I know what my center column width is? I know in my layout settings I can set the values for left and right columns, but I would like to know the center value so I can design images/tables accordingly. I assume it's in the template settings somewhere, not sure where to look. Thanks again!

29 Sep 2009, 1:02 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Altering the Information Sidebox

The center column width is set by the #mainWrapper width minus the sidebar (#navColumnOne & #navColumnTwo) widths.
If #mainWrapper is fixed width, you can design for a fixed center column. If it is a percent width, you will have a variable center. Be sure to allow for whatever margins and padding exist in the various containers down the line.

7 Oct 2009, 5:02 PM
#8
old_cow avatar

old_cow

New Zenner

Join Date:
Sep 2009
Location:
Atlanta, Georgia
Posts:
36
Plugin Contributions:
0

Re: Altering the Information Sidebox

I just added EZ pages and included "EZ pages in sitemap" - Thanks, Mick!

With the override system, where do I have to delete pages in the information sidebox, since I replaced them in external links?

http://ip-192.com/cart/