Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,646

Results 1,061 to 1,080 of 2,268
15 Nov 2009, 3:06 PM
#1061
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Categories Dressing

Hi Glen, great mod. How do i get the entire categories to display all the time, the complete tree always open to show top categories and sub categories, i only have main categories and sub categories. I would like them all open all the time on all pages including the homepage.

I've played around with the three numbers (0|0|0) and have put them into every configuration i can think of but i either get nothing displaying or just main categories displaying.

I've switched back to the regular categories stylesheet until i can sort this, any help is greatly appreciated.

http://www.smokin-paint.com

17 Nov 2009, 12:09 AM
#1062
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

Wonder if you can help Glen, what numbers would i have to put in here to display all top categories and all sub categories all of the time on every page.

includes/languages/english/extra_definitions/classic/categories_dressing_defines.php

define('CAT_BOX_ACTIVE_LEVEL', '0|0|9');

I dont seem to be able to get this to work. Any help is appreciated.

17 Nov 2009, 12:19 AM
#1063
first_trading avatar

first_trading

Zen Follower

Join Date:
Aug 2008
Posts:
244
Plugin Contributions:
0

Re: Categories Dressing

I feel like a prat, just noticed the mod has a seperate sidebox you have to turn on..............what can i say i'm an idiot.

17 Nov 2009, 9:13 PM
#1064
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

FenG - You need to give each category a different sort order to be sure they will line up the way you want. Then you need to apply the heading define to the category number that is at the top of the desired section. If you want to add a new category to the section above the current first one, you need to transfer the define to that number.

first trading - Glad you noticed the mention of the chcategories sidebox in the readme.

19 Nov 2009, 6:38 PM
#1065
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

I know I've posted this info somewhere recently, but can't find it now. Here it is again for easy reference:

To make a heading clickable, or to include a non-category link in the categories sidebox, add the HTML for the link to the heading define in categories_dressing_defines.php. For example:```php
define ('CAT_BOX_HEADING_33_35','0|0|||<a href="yourdestination">Linked Heading</a>|3');//link in text heading - style 3

23 Nov 2009, 6:47 PM
#1066
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Hi,

LINK

I want to either have the three headings (categories) Design, Print, Web as different colour links or have all the design catagories in one colour and all hte print in another etc.

How can I do this? I have installed the dressing mod.

ThanksDo you want the three main categories to be actual categories? They are not truly organizational tops as is, just blank category names. You can easily make headings belonging to the first real category in the group, and give each of them a separate class identifier in the define so they can have different styling.

Define the headings to start new groups, and you can use the group id to style each group differently as well. These processes are described in the readme.

If you want the headings to link to information pages, you can include the link code in the heading text as described directly above.

24 Nov 2009, 4:55 PM
#1067
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

Define the headings to start new groups,

I've read through the readme and i just don't get it.
(The heading defines take this form: - is the right section?)

How would I change the category 'DESIGN' to a heading? What do I put where? :dontgetit

Thanks

24 Nov 2009, 6:32 PM
#1068
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

If you want "Business Card Design" (category 107) to be the first category in that group, try

define ('CAT_BOX_HEADING_107','1|0|||DESIGN|1|');

Then style

.catBoxHeading1 {

as you want that heading to appear.

Do the same for the other groups, using 2 and 3 for the last parameter in the defines.

You would delete the category DESIGN and the other "heading" categories.

25 Nov 2009, 6:17 PM
#1069
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Categories Dressing

Thank you :bigups: That makes sense now..sorry about that...having quite a few slow brain moments with Zen cart at the moment! :blush: I'll give that a go :smile:

3 Dec 2009, 9:49 AM
#1070
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Categories Dressing

Hi, Ive uploaded this add-on to our test site today. Its working well thanks!

I just have one question; the currently selected category indents to the left. Id like to indent it to the right, but I cant find it in the CSS.

I know the text is 'cat-selected-text' - but what property should i adjust in the style-sheet to affect its amount of indentation?

Thanks,

Scott.

3 Dec 2009, 10:06 AM
#1071
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Do you want right indent as well as left, or instead of it? You can add a margin-right: 1.5em; or whatever to the rule with .cat-selected-text. For more guidance, a link to see what you have will help.

3 Dec 2009, 10:10 AM
#1072
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Categories Dressing

Hi, yes id like the cat selected text to indent to the right instead of to the left.

Here's a link to the test template (not finished);

http://www.crushcosmetics.com.au/store/

3 Dec 2009, 10:26 AM
#1073
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The picture makes all the difference :) You didn't want an indent on the right side of the text, you wanted the left edge of the text to move right instead of left when selected. That was entirely an effect of the different bullet the selected category gets.

You can move the whole line right like this```
/change bullet when a category w/o bg image is open to products:/
#categories li a.cat-selected-text {
list-style: square inside url(../images/bullet3.gif);/change to list-style: none; to remove bullet/
margin-left: 1.0em;
}


Padding and text-indent have no effect on this spacing either. You may be able to achieve your desire by editing the "selected" bullet image to have some transparent space at its right side, though I don't know if the CSS will detect that and eliminate it. Try it and let me know!
3 Dec 2009, 10:40 AM
#1074
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Categories Dressing

Lol!

Thanks Glenn that did the trick. :smile:

8 Dec 2009, 4:38 PM
#1075
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Categories Dressing

Hi,

Just trying to add a link to one of my headings and not getting it to work.

So I add within the categories dressing defines file the line:

define ('CAT_BOX_HEADING_33_35','0|0|||<a href="yourdestination">Linked Heading</a>|3');//link in text heading - style 3  

For the title 'Design' to link to a design page what would I change to the above. (LINK)

I tried a few things but it didn't work :huh:

Thanks

8 Dec 2009, 6:40 PM
#1076
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

What is the address of the design page? Is it the one in the link? That is the homepage, which you can do with

define ('CAT_BOX_HEADING_33_35','0|0|||<a href="index.php">Design</a>|3');
9 Dec 2009, 5:39 AM
#1077
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: Categories Dressing

Hello

Is there a way to use swf files instead of gifs?

I'd like to be able to just use one SWF with all the buttons in it and link to my categories myself, but i cant seem to make swf's work.

Sorry if this question has been asked here already I could find it in search.

9 Dec 2009, 6:50 AM
#1078
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Building your own flash menu is a completely different subject and not related to this mod. You should post a new thread in an appropriate forum if you want help with that.

9 Dec 2009, 7:03 AM
#1079
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

Building your own flash menu is a completely different subject and not related to this mod. You should post a new thread in an appropriate forum if you want help with that.

No I want to have category dressing use an swf file instead of a .gif file

for example;

categories li a.catBg65 {
    background-image: url(../buttons/english/catbg65.SWF);
	 height: 30px;
    }

I cant seem to get it to work. is it possible?

9 Dec 2009, 7:17 AM
#1080
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The way you described it sounded incompatible with current coding, but if there are individual button files, that could work.

The current version is built to use gifs, so you would need to edit categories_dressing_functions.php to use .swf instead.

The new version 2.8 (not released yet, but ready to go) has a single define to set the image type.