Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Dynamic Sidebars

    Yes... all of this is possible, though not in the same way that WordPress does it. There are a number of techniques, and indeed "combinations" of techniques, which include:

    1. Stylesheets (page-specific)
    2. Edits to tpl_main_page.php
    3. Settings in layout controllers ( including EZPages, where you can disable columns based on EZPage ID numbers).
    20 years a Zencart User

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Dynamic Sidebars

    You can also edit specific sideboxes' module files to control when they will display, if you want that level of granularity.

  3. #3
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Dynamic Sidebars

    Quote Originally Posted by gjh42 View Post
    You can also edit specific sideboxes' module files to control when they will display, if you want that level of granularity.
    How about to get rid of the sidebar entirely on the checkout page to make that page full width for example?

  4. #4
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Dynamic Sidebars

    Quote Originally Posted by schoolboy View Post
    Yes... all of this is possible, though not in the same way that WordPress does it. There are a number of techniques, and indeed "combinations" of techniques, which include:

    1. Stylesheets (page-specific)
    2. Edits to tpl_main_page.php
    3. Settings in layout controllers ( including EZPages, where you can disable columns based on EZPage ID numbers).
    Thanks! Is your #3 something to do with the option to turn on and off the center column status in the layout boxes controller? It never works for some reason.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Dynamic Sidebars

    Quote Originally Posted by pricediscrimination View Post
    Thanks! Is your #3 something to do with the option to turn on and off the center column status in the layout boxes controller? It never works for some reason.
    No... column control is best-managed by:

    1. edits to tpl_main_page.php (where you can disable left/right columns for specific pages)...

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        
    $flag_disable_right true;
      } 
    EG

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if  (in_array($current_page_base,explode(",",'shopping_cart'))  ) {
        
    $flag_disable_right true;
      } 
    There are comprehensive NOTES in tpl_main_page.php for column display customisation


    2. Page/category specific stylesheets (SEE THE README file in /includes/templates/classic/css/CSS_read_me.txt

    Using {display:none} declarations for either the whole column, or even certain sideboxes in a column, you can hide elements on specific pages/categories...


    3. For EZPAGES, see ADMIN>>>CONFIGURATION>>>EZ PAGES SETTINGS...
    EZ-Pages Pages to disable headers
    EZ-Pages Pages to disable footers
    EZ-Pages Pages to disable left-column
    EZ-Pages Pages to disable right-column
    20 years a Zencart User

  6. #6
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Dynamic Sidebars

    Quote Originally Posted by schoolboy View Post
    No... column control is best-managed by:

    1. edits to tpl_main_page.php (where you can disable left/right columns for specific pages)...

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        
    $flag_disable_right true;
      } 
    EG

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if  (in_array($current_page_base,explode(",",'shopping_cart'))  ) {
        
    $flag_disable_right true;
      } 
    There are comprehensive NOTES in tpl_main_page.php for column display customisation
    Tried this one so far, and it works flawlessly! Thank you so much. I'll explore the other options too.

  7. #7
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Dynamic Sidebars

    When you empty the cart, it carries over the missing sidebar, is there a way to put the sidebar back in in a situation like this?

 

 

Similar Threads

  1. Sidebars not to rotate
    By nomadrw in forum Basic Configuration
    Replies: 0
    Last Post: 20 Sep 2007, 08:28 PM

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