Forums / Customization from the Admin / Struggling with $flag_disable_left, right in tpl_main_page.php

Struggling with $flag_disable_left, right in tpl_main_page.php

Views: 834

Results 1 to 5 of 5
10 Dec 2012, 10:07 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Struggling with $flag_disable_left, right in tpl_main_page.php

I'm struggling with turning off and on L & R columns, and have tried using the supplied code in tbl_main_page.php

as per instruction it's currently set at this -

if ($current_page_base == 'index' and $cPath == '') {
$flag_disable_left = true;
$flag_disable_right = false;
} else {
$flag_disable_left = false;
$flag_disable_right = true;
}

but on the index page the Left Col is still showing.

As a test i went into 'Layout Settings' and set Column Global both to off but that seems to override what is found in the page template code

i trying to get the the RH Column ON for the index page only. All other pages I need the LH On and the RH off.

what am ah doing wrong?!?

for EZ pages.... well,.... i'll get to that later ;-)

10 Dec 2012, 10:13 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Struggling with $flag_disable_left, right in tpl_main_page.php

<?php if ($this_is_home_page) { $flag_disable_right = true; }

20 years a Zencart User

10 Dec 2012, 10:40 PM
#3
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: Struggling with $flag_disable_left, right in tpl_main_page.php

freaking awesome!, thank you schoolboy

this is the best UG (User Group) ever!

10 Dec 2012, 11:07 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Struggling with $flag_disable_left, right in tpl_main_page.php

tcarden:

for EZ pages.... well,.... i'll get to that later ;-)

Much easier for EZ-pages... In the ADMIN PANEL under CONFIGURATION MENU there is a sub-menu for EZPAGE SETTINGS.

At the bottom of this selection are input fields where you just list the EZPAGE I.D. numbers for left/right column disable.

To find out the ID of an EZPAGE, just go to the EZPAGES edit grid (where you see all the green and red blobs) and the pages' I.D.'s are on the left column.

20 years a Zencart User

11 Dec 2012, 12:05 AM
#5
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: Struggling with $flag_disable_left, right in tpl_main_page.php

Wow, thanks.