Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default 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 ;-)

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default 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!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

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

    Quote Originally Posted by tcarden View Post



    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

  5. #5
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

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

    Wow, thanks.

 

 

Similar Threads

  1. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  2. Disable Columns with tpl_main_page.php - help please
    By wasana in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Jul 2010, 04:49 AM
  3. PHP help with broken tpl_main_page.php
    By HeresySnowboarding in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2008, 07:48 PM
  4. Which tpl_main_page.php ???
    By zcnb in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 15 Aug 2008, 10:57 PM
  5. strange problem with css and modification of tpl_main_page.php
    By sartzsche in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 May 2006, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg