Page 186 of 227 FirstFirst ... 86136176184185186187188196 ... LastLast
Results 1,851 to 1,860 of 2267
  1. #1851
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    How do you want to change the sidebox size? Height? Width?

    If you want only top categories showing, that is best done with the admin setting in Configuration > Layout Settings > Categories - Always Open to Show SubCategories > set to 0.

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

    Default Re: Categories Dressing

    webdca - I am not seeing any characters/marks on hover, in Firefox or IE9 regular or compatibility view.

  3. #1853
    Join Date
    Aug 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    How do you want to change the sidebox size? Height? Width?

    If you want only top categories showing, that is best done with the admin setting in Configuration > Layout Settings > Categories - Always Open to Show SubCategories > set to 0.
    Thanks for the info. I'd like to change the sidebox width if possible.

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

    Default Re: Categories Dressing

    That's not actually related to Categories Dressing, but a general styling ability; you can address the categories sidebox as a whole with

    #categories {width: 123px !important;}

  5. #1855
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Categories Dressing

    @gjh42

    I have categories dressing v2_8 installed. I have all my top cats and sub cats1 showing on the home page. A couple of my top cats have more than 10 sub cats1, is there a way to change it to where a max of 10 sub cats1 are displayed on the home page?
    Thank you,
    autoace

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

    Default Re: Categories Dressing

    That would be new custom coding. I'm not sure offhand where you would get the info, but you would need to add something that keeps a count of subcats of the current top cat and suppress display of ones beyond 10... If there could be sub-subcats processed in there too, it could get really messy. Probably the best way would be to alter the base category-tree class, which I have not done and can't advise on.

  7. #1857
    Join Date
    May 2011
    Posts
    20
    Plugin Contributions
    0

    Default How to unlink the top level category

    Hi guys,

    I am using the Uncollapsed Categories Tree. All is working fine. What I would like to do is 'unlink' the top level category, which I don't really need. Currently, if I click on the top level category a page load and lists each subcategory in thumbnail format. It's a bit redundant, as the sub cats are always showing anyway.

    Any ideas ? Note that this mod includes a new tpl_categories file

    adam

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

    Default Re: How to unlink the top level category

    You would need to apply the code described by jackie.taferner in the other thread to v2.7.3's tpl_categories.php, line 51:
    PHP Code:
          $content .= '  <li class="cat-' $new_style '"><a class="cat-' $active_class $cat_name_display[0] . '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">'
    and line 62:
    PHP Code:
          $content .= '</a>'
    Change to
    PHP Code:
          if ($box_categories_array[$i]['top'] == 'true') {
            
    $content .= '  <li class="cat-' $new_style '"><span class="cat-' $active_class $cat_name_display[0] . '">';
          } else {
            
    $content .= '  <li class="cat-' $new_style '"><a class="cat-' $active_class $cat_name_display[0] . '" href="' zen_href_link(FILENAME_DEFAULT$box_categories_array[$i]['path']) . '">';
          } 
    and
    PHP Code:
          if ($box_categories_array[$i]['top'] == 'true') {
            
    $content .= '</span>';
          } else {
            
    $content .= '</a>';
          } 
    You would also need to do some styling to make these spans look as you want, since some of the <a> styling will no longer apply.

  9. #1859
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Re: Categories Dressing

    Hi, I have been trying to develop a navigation system for a development site. But I am having limited success.

    I have four parent categories which I have displayed across the top of the web page, I am using the Categories Dressing mod set to only show subcategories in the Category Sidebox. This is great and exactly how I want my navigation to be. (See attached)

    But I get an empty Category Sidebox on all pages where Subcategories are not displayed (see attached). Can someone please help me and show me where I am going wrong.

    How can I have the Category Sidebox turned off or not displayed on pages where Subcategories are not shown? For example, the home, log-in, cart, account, log-off page. EZ-Pages, Define Pages etc.

    Failing this I will have to redesign my navigation or styling.

    I cannot workout how to do it. It is on my local WAMP set up so sadly no live link available.

    Thanks
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	empty-cat-sidebox.jpg 
Views:	128 
Size:	15.2 KB 
ID:	9651   Click image for larger version. 

Name:	subcat-displyed-only.jpg 
Views:	114 
Size:	15.9 KB 
ID:	9652  

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

    Default Re: Categories Dressing

    This is not a Categories Dressing issue; you can fix it by editing /includes/modules/sideboxes/your_template/categories.php (not a Cat Dressing file).
    PHP Code:
     * @version $Idcategories.php 2718 2005-12-28 06:42:39Z drbyte $
     */
    //add this line to turn sidebox off for non-category/product pages
    if ($cPath) {

        
    $main_category_tree = new category_tree;
        
    $row 0;
        
    $box_categories_array = array();

    // don't build a tree when no categories
        
    $check_categories $db->Execute("select categories_id from " TABLE_CATEGORIES " where categories_status=1 limit 1");
        if (
    $check_categories->RecordCount() > 0) {
          
    $box_categories_array $main_category_tree->zen_category_tree();
        }

        require(
    $template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_categories.php');

        
    $title BOX_HEADING_CATEGORIES;
        
    $title_link false;

        require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    //add this line to turn sidebox off for non-category/product pages
    }
    ?> 
    There might possibly be a product page that doesn't involve a cPath for some kinds of display, so if you don't get the categories sidebox in a place you want it, post back and I'll take a look at adding the right extra condition.

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR