Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,606

Results 1,841 to 1,860 of 2,268
16 Aug 2011, 3:10 PM
#1841
fred_tededmondsson avatar

fred_tededmondsson

New Zenner

Join Date:
Jul 2011
Posts:
26
Plugin Contributions:
0

Categories Dressing

Does anyone have any advice on using Categories Dressing with a template that already includes a tpl_categories.php?

In particular, I'm using Lite Red from 12leaves.com

16 Aug 2011, 3:22 PM
#1842
webdca avatar

webdca

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

I am using version 1.3.9h

This is a simple question..I just have no idea where to do this.

I want to change my sub categories that appear in middle of the page (not in the categories menu) to images.

Can someone help me out with this?

17 Aug 2011, 2:41 PM
#1843
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

This has nothing whatever to do with Categories Dressing, but if you post your question in an appropriate forum and let me know where the new post is, I will look at it. You should give a location where we can see it live for the best advice relevant to your site. It will probably be a simple addition to one PHP file, or possibly just to the stylesheet.

17 Aug 2011, 2:51 PM
#1844
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

fred_tededmondsson - You would need to identify how the template's version of tpl_categories.php is different from stock (by comparing them), and then merging the essential differences into the Categories Dressing version of tpl_categories.php. If the template version involves mostly the container for the categories, you may be able to use the parts that make it match other sideboxes; if the template version affects the structure of the categories themselves, you cannot merge the two and will have to scrap the template version. In this case, both versions are manipulating the same elements in different ways, and only one method can be used.

17 Aug 2011, 3:08 PM
#1845
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

webdca - See this thread for some answers to your question: Removing Name under "Section Image"

19 Aug 2011, 3:22 PM
#1846
webdca avatar

webdca

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

Hello,

I just installed categories dressing...I like the default menu EXCEPT when you roll over, there are these weird characters /// }{}{} ..

How can I remove these?

21 Aug 2011, 2:23 AM
#1847
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

There shouldn't be any such characters. Can we see the site live to understand what you are referring to? Do you perhaps mean little hash marks at top and possibly bottom of the category space? That would be a background image to highlight the hovered link. I don't remember its name offhand, but if you look at the stylesheet for :hover rules, you should find references to a url in background: or background-image: properties.

22 Aug 2011, 11:22 PM
#1848
cruisercommando2011 avatar

cruisercommando2011

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Categories Dressing

Hello, I believe this will be the first of many newbie questions to come about your add-on. I appreciate the time and patience.

In the installation instructions there is a line that states: "Activate the chcategories sidebox as described in readme_ch_categories.txt"

I'm not even sure where I the readme_ch_categories.txt is. I would appreciate someone pointing me in the right direciton. Thank you.

23 Aug 2011, 5:36 PM
#1849
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

That readme file was inadvertently left out of the v2.7.3 release, but it has no important information that is not available elsewhere.

You activate a sidebox in admin > Tools > Layout Boxes Controller.

24 Aug 2011, 5:45 PM
#1850
webdca avatar

webdca

New Zenner

Join Date:
Aug 2011
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

GJH42: www.restaurantstore(dot)ca

Notice when you roll over categories it is displaying the weird roll over..

24 Aug 2011, 11:56 PM
#1851
cruisercommando2011 avatar

cruisercommando2011

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Categories Dressing

thank you for the help...next question. I can't seem to see where I can change the sidebox size in the css, could someone help me out with the proper place to define this? Also, I would only like one level of category shown in the sidebox for right now. I know there are instructions on this that I believe look like this.

The category display-limiting define takes this form:
define('CAT_BOX_ACTIVE_LEVEL', 'active|highest_level|deepest_level');
The "active" field controls whether categories outside the current active tree will display: 0=all tops/1=full active tree only/2=active tree only (all tops when no cat selected)/3=full active tree, others limited per level controls/4=like 3, active branches only/5=like 1, no tops.
The "highest_level" field controls whether top categories will display: 0=all levels/1=no topcats/etc.
The "deepest_level" field controls whether subcategories will display: 1=only first subcats/2=first & second subcats/.../9=all levels down to 9.

25 Aug 2011, 6:47 AM
#1852
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

25 Aug 2011, 6:50 AM
#1853
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

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

25 Aug 2011, 7:35 PM
#1854
cruisercommando2011 avatar

cruisercommando2011

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

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.

25 Aug 2011, 9:28 PM
#1855
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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;}

27 Aug 2011, 5:09 PM
#1856
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

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?

29 Aug 2011, 12:42 AM
#1857
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

6 Sep 2011, 3:02 AM
#1858
captaincarlton avatar

captaincarlton

New Zenner

Join Date:
May 2011
Posts:
20
Plugin Contributions:
0

Re: Categories Dressing

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

6 Sep 2011, 12:57 PM
#1859
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

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 $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
$content .= '</a>';

Change to```php
      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
      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 Sep 2011, 12:12 PM
#1860
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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. :frusty:

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

Thanks