Zen Cart Logo

side columns

Locked

Views: 4,085

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
9 Jul 2006, 11:11 PM
#1
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

side columns

Hi

i want to display both side columns on the home/index page

but on all other pages i wanna display only right columns, is

there a way to setup store like this. Please advise.

Thanks in advance!

10 Jul 2006, 5:59 AM
#2
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

Hey Ajeh!

Please help. I already tried a method i found in one of

the threads but is not working for me. In order to hide left

column on product list page for any category i created a

folder as includes/templates/celltemp/index_product_listing

where celltemp is my_template and copied tpl_main_page.php

to index/product_listing folder and uncommented $flag_disable_left = true;

 After all this left column is still visible on product listing page. 

Can you please guide how to dissable left column from all the

pages except the main index page. Also if i am able to hide

the left column will the center column extend itself to the left

end on its own or there's more to that.

Your help appreciated

Thanks!

10 Jul 2006, 7:36 AM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: side columns

akhil:

Hi

i want to display both side columns on the home/index page

but on all other pages i wanna display only right columns, is

there a way to setup store like this. Please advise.

Thanks in advance!

Admin->Tools->Layout Boxes controller

10 Jul 2006, 8:59 AM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: side columns

Please refer to a topic in archive:
Sidebox Overrides

.

10 Jul 2006, 2:58 PM
#5
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

Hey guys thanks for your time and reply, from admin layout

settings i can only set left or right column on or off globally but what

want to achieve is that to hv both columns only on main index page

and hv left column turned off for all other pages. Going through other

threads i found that i hv to override all other pages but the override

system for some reason is not working for me. If someone can guide me

how to override the page taking product listing page for example.

Thanks and eagerly waiting for your reply.

10 Jul 2006, 3:42 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: side columns

Left and Right columns to be visible on Home Page, but
Left column should be "off" on all other pages.

Edit /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
around line 47 you have:```php
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';

```php
  if (!($current_page!='index' || (int)$cPath>0)) {
    $flag_disable_left = true;
  }
10 Jul 2006, 4:51 PM
#7
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,440
Plugin Contributions:
3

Re: side columns

Left and Right columns to be visible on Home Page, but
Left column should be "off" on all other pages.
Not really, it's the other way around. It turn it off on main page and is on, on the other pages. :down:

10 Jul 2006, 7:41 PM
#8
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

Yeah DrByte it worked but the other way around. If i use

the code u asked me to add the left column is hidden on main

page and visible on all other pages but should be vice versa. I am

not good with programming and syntax so if you can plz tell

how to have left column on main page and hidden on all other

pages. thanks

10 Jul 2006, 8:06 PM
#9
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

Yeah DrByte it worked but the other way around. If i use

the code u asked me to add the left column is hidden on main

page and visible on all other pages but should be vice versa. I am

not good with programming and syntax so if you can plz tell

how to have left column on main page and hidden on all other

pages. thanks

11 Jul 2006, 9:51 PM
#10
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

can anybody plz help

how to have left and right column on main page but

hide the left column on all other

pages.

thanks

12 Jul 2006, 1:11 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: side columns

It looks like a double negative in the syntax...;)

Remove the ! from the beginning of the if statement and see what happens. I think that will reverse the whole test.

12 Jul 2006, 1:32 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: side columns

Home Page = 2 columns
Click a Category = 2 columns (as in product listings)

Click a Product, information link = 1 column
New, All, Specials = 1 column
Search = 1 column

  if (($current_page!='index' || !(int)$cPath>0)) {
    $flag_disable_left = true;
  }
12 Jul 2006, 2:25 AM
#13
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,440
Plugin Contributions:
3

Re: side columns

Watta'girl... :smartass:

12 Jul 2006, 6:05 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: side columns

oops must need more coffee so late at night -- just remove the first ! mark from this line:php if (!($current_page!='index' || (int)$cPath>0)) { making it like this:```php
if ($current_page!='index' || (int)$cPath>0) {


DOH ... Ajeh beat me to it .... such the quick little elf that she is.... :D
12 Jul 2006, 10:09 PM
#15
akhil avatar

akhil

New Zenner

Join Date:
Sep 2004
Posts:
30
Plugin Contributions:
0

Re: side columns

Thanks Ajeh and Thanks DrByte it worked, you guys saved me

thanks again n gud luck