Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 57
  1. #41
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: how would I make the categories expand?

    That's fantastic. Thanks for your help.

    One last option would be great. That if you click on a catagory or subcatagory, that catagory or the catagory that the subcat belongs to if the only one showing in the catagories box with a single "view all catagories" link at the very top to bring someone back to show all catagories.

    I hope I make sense. I take it that's not possible yet?

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

    Default Re: how would I make the categories expand?

    It couldn't be achieved with the current available settings alone.

    Switching from a "top + first subs" view when no cats have been clicked to some variety of "active tree only" view when a cat is active could be done in categories_dressing_defines.php by adding another case with appropriate coding to the cat_active_level_manage() function.

    Getting the "view all" button when a cat is active would be trickier, and I would have to think about the best way to do that.

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

    Default Re: how would I make the categories expand?

    This may do the control you want. I have not tested it; try it and let me know if there is a problem.
    PHP Code:
          case 6://like 4, per level when none active
            
    if($cPath_top == 0){
              
    $test_level 1;
              break;
            }
            if(
    $cPath_top == $path_top){
              if (
    $cat_depth >= 2){//only test sub-subcats+
                
    $path_ids explode('_',$path);
                
    $path_parent $path_ids[count($path_ids)-2];
                if (!
    in_array($path_parent,explode('_',$_GET['cPath']))) $skip_cat 1;//show only subcats w parent in $cPath
              
    }
            } else {
    //if not active test for level
              
    $skip_cat 1;
            }
            break; 
    Last edited by gjh42; 21 Oct 2009 at 07:07 PM.

  4. #44
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: how would I make the categories expand?

    Thanks again. Where would I add this? I'm sure it's obvious but I know nothing about php.

    Tim.

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

    Default Re: how would I make the categories expand?

    OK, edit /includes/functions/extra_functions/categories_dressing_functions.php, and add it after the "case 5" code block.
    PHP Code:
          case 5:// show active, no top, per levels
            
    if ($cat_depth == or $cPath_top != $path_top) {
              
    $skip_cat 1;
            }else{
              
    $test_level 1;
            }
            break;
          case 
    6://like 4, per level when none active
            
    if($cPath_top == 0){
              
    $test_level 1;
              break;
            }
            if(
    $cPath_top == $path_top){
              if (
    $cat_depth >= 2){//only test sub-subcats+
                
    $path_ids explode('_',$path);
                
    $path_parent $path_ids[count($path_ids)-2];
                if (!
    in_array($path_parent,explode('_',$_GET['cPath']))) $skip_cat 1;//show only subcats w parent in $cPath
              
    }
            } else {
    //if not active test for level
              
    $skip_cat 1;
            }
            break;  
        }
    //switch 
    Then edit the define with '6|0|1'.

  6. #46
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: how would I make the categories expand?

    It works perfectly. Amazing, thank you!

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

    Default Re: how would I make the categories expand?

    Glad it's working. Would you mind letting me see the site?

  8. #48
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: how would I make the categories expand?

    It's not a live site as you can see. There is still alot of work to be done and I have yet to change the colors in the menu. On that, is it possible to change the background color of a subcat only when it is active?

    The right hand menu is also just temporary.

    http://www.lowpricedhardware.ie/

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

    Default Re: how would I make the categories expand?

    You can highlight the current category path with these selectors (already in your stylesheet_chcategories_dressing.css):

    #chcategories li a.cat-selected-text {}
    #chcategories li a.cat-parent-text {}

  10. #50
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: how would I make the categories expand?

    Thanks yet again.

    I'm sure I'm missing something very obvious but how do I change the font, and background color of the main cat headings? And the backgund color of the subcats?

 

 
Page 5 of 6 FirstFirst ... 3456 LastLast

Similar Threads

  1. How can I expand my entire categories tree?
    By jnb41578 in forum General Questions
    Replies: 1
    Last Post: 13 Feb 2012, 10:40 PM
  2. How would i make the products appear like this?
    By shah2k in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Feb 2010, 04:21 PM
  3. How would i make the box smaller???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 5 Oct 2009, 01:33 AM
  4. Turn off all sideboxes on the right and make centerbox expand
    By Heather88 in forum Basic Configuration
    Replies: 8
    Last Post: 23 Apr 2007, 04:23 AM
  5. Always expand the categories menu?
    By eger in forum General Questions
    Replies: 0
    Last Post: 8 Jun 2006, 07:30 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