Ignore:
Timestamp:
10/26/10 16:37:22 (9 years ago)
Author:
plg
Message:

modification: home page is not the same as the root category. This way you can
hide the root category main block on homepage without forbidding access to the
root category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/include/class.inc.php

    r7340 r7402  
    4444    if ($script == 'index') 
    4545    { 
    46       $query .= isset($page['category']) ? 
     46      $query .= !$page['is_homepage'] ? 
    4747        'AND on_cats = "true"' : 
    4848        'AND on_home = "true"' ; 
     
    7777          and $datas['hide']) 
    7878        { 
    79           add_event_handler('loc_end_index', 'remove_main_block'); 
     79          add_event_handler('loc_end_index', 'hide_main_block'); 
    8080        } 
    8181                continue; 
Note: See TracChangeset for help on using the changeset viewer.