Thanks for taking a look Glen. I searched for empty <li> tags and could only find one in the /index.php file. I've remved it but it didn't help.
Which file would you think may be the culprit file? Does the page source give you any clues?
Printable View
Thanks for taking a look Glen. I searched for empty <li> tags and could only find one in the /index.php file. I've remved it but it didn't help.
Which file would you think may be the culprit file? Does the page source give you any clues?
The empty <li> are being generated in the tpl_categories.php output (they wouldn't exist as such in the PHP files).
Look at your heading defines to see if there are any pipes | after the heading content and class number. Post your defines here if you are not sure of what you see.
For the extra <li> holding the subcats... the code for list/level control is rather complex and the issue if there is one may not jump out at me. I'll look at the v2.7.3 files when I get a chance, but that will be a lower priority than finishing up the v2.8 release (which should solve the problem for sure if it is a v2.7.3 bug).
Hi Glenn, if you look at the defines file it'll probably jump out at you. This is v2.6 I'm using btw. I did have some trouble with this file getting it to do what I wanted so you might well find a pipe where it shouldn't be. Hard to figure out as some of the original defines have two pipes, some have three and some have even got four or five. Not sure how many they should have. Here's the existing file:
Maybe I should upgrade to the latest version?PHP Code:
<?php
/**
*
* @copyright Copyright 2009 Glenn Herbert
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/licenses/ GNU Public License V3.0
* Categories Dressing v2.6 - Glenn Herbert (gjh42) - 20090128
* includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php
*/
//example defines - copy & modify for each category desired
define ('CAT_BOX_HEADING_349','0|0||| <a href="index.php?main_page=coming_soon">Coming Soon ...</a>|3||');
define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...');
define ('CAT_BOX_HEADING_#','1|0||');//new list - no headings
define ('CAT_BOX_HEADING_1_26','1|0|||Colour Filter:|1||');//new list - text headings - multiple levels - styles 1 & 2
define ('CAT_BOX_HEADING_1_339','1|0||');//new list - no headings
define ('CAT_BOX_HEADING_349','2|0||');//new list - no headings
define ('CAT_BOX_HEADING_#','0|1|||Another Heading|2');//no list break - divider and text heading - style 2
define ('CAT_BOX_HEADING_#_#','0|0|||Subcat Heading|3');//simple text heading - style 3
define ('CAT_BOX_HEADING_#','1|0|cathead48.gif|Cat 48 Heading|Buy Now...|3');//image heading and alt text - can be followed by text heading(s)
define ('CAT_BOX_HEADING_1','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_355','1|0|||Homewear Flowers|5');//new list - text heading - style 5
define ('CAT_BOX_HEADING_16','0|2||');//divider only - style 1
define ('CAT_BOX_HEADING_3','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_#','0|2||');//divider only - style 2
define ('CAT_BOX_HEADING_FEATURED','0|0||||');//no list break - text heading
define ('CAT_BOX_SUBTEXT_#','Subtext for cat # escape apostrophe\'s|1');//subtext - style 1
//
//display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination.
//only uncomment and set this define if you want to hide cats based on active tree or level
// 'active|highest_level|deepest_level'
//active: 0=all tops/1=active tree only/2=active only (all tops when no cat selected)|
//highest_level:0=all levels/1=no topcats/etc.|
//deepest_level: 1=only first subcats/2=first & second subcats/etc.
//
//define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats
//define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level
?>
The Colour Filter heading has two pipes after the "1"; there should not be any trailing pipes in defines with heading text. Every one of those defines should have exactly 3 or 5 or 7 pipes, depending on how many text headings there are (none, one or two).
And v2.6 definitely had list bugs in it. You should not be using anything older than v2.7.3.
Looks like I had extra pipes after the 3 in coming soon... too. I've taken them out of both and it's defnitely helped! Take a look at it now, only the All Wedding Flowers heading has a gap now:
www.silkblooms.co.uk
Here's the amended defines file. Can you see anything that might be causing this one last gap?:
PHP Code:
<?php
/**
*
* @copyright Copyright 2009 Glenn Herbert
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/licenses/ GNU Public License V3.0
* Categories Dressing v2.6 - Glenn Herbert (gjh42) - 20090128
* includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php
*/
//example defines - copy & modify for each category desired
define ('CAT_BOX_HEADING_349','0|0||| <a href="index.php?main_page=coming_soon">Coming Soon ...</a>|3');
define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...');
define ('CAT_BOX_HEADING_#','1|0||');//new list - no headings
define ('CAT_BOX_HEADING_1_26','1|0|||Colour Filter:|1');//new list - text headings - multiple levels - styles 1 & 2
define ('CAT_BOX_HEADING_1_339','1|0||');//new list - no headings
define ('CAT_BOX_HEADING_349','2|0||');//new list - no headings
define ('CAT_BOX_HEADING_#','0|1|||Another Heading|2');//no list break - divider and text heading - style 2
define ('CAT_BOX_HEADING_#_#','0|0|||Subcat Heading|3');//simple text heading - style 3
define ('CAT_BOX_HEADING_#','1|0|cathead48.gif|Cat 48 Heading|Buy Now...|3');//image heading and alt text - can be followed by text heading(s)
define ('CAT_BOX_HEADING_1','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_355','1|0|||Homewear Flowers|5');//new list - text heading - style 5
define ('CAT_BOX_HEADING_16','0|2||');//divider only - style 1
define ('CAT_BOX_HEADING_3','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_#','0|2||');//divider only - style 2
define ('CAT_BOX_HEADING_FEATURED','0|0||||');//no list break - text heading
define ('CAT_BOX_SUBTEXT_#','Subtext for cat # escape apostrophe\'s|1');//subtext - style 1
//
//display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination.
//only uncomment and set this define if you want to hide cats based on active tree or level
// 'active|highest_level|deepest_level'
//active: 0=all tops/1=active tree only/2=active only (all tops when no cat selected)|
//highest_level:0=all levels/1=no topcats/etc.|
//deepest_level: 1=only first subcats/2=first & second subcats/etc.
//
//define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats
//define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level
?>
The last gap is not from a define, it is a bug in v2.6. That's why there is v2.7.3, so those things don't happen.
Thanks Glenn. I'll look at upgrading. Do you think it'll be an easy upgrade given my current setup?
You won't need to replace the existing defines file, where presumably all of the customization is, so it should be painless. Compare the defines files and if there is a new kind of define added to the v2.7.3 copy, add it to your copy (I don't recall the details of differences this long after the update).
Hello Glen, do you have a date for when you might release 2.8?
Are there a lot of updates from the current version to 2.8?
"Soon." :) There are not a lot of noticeable changes.
v2.8 (added easier special category styling, image type setting, image function for links, optional flyout styling)
The last two in this list can be done with tips I have posted in this thread, and I think the others are contained in the preliminary zip I attached to a post some time back.
You won't have to redo any settings or filenames etc. (Unless you have written a custom case in the switch function.) There are mostly just a few new features you can find, and a few obscure edge cases that will work more reliably.
can i install this mod on 1.5 or should i just wait for the new version?
I am a little confused on how to make the changes to this MOD. Site is http://lesleyelizabeth.net
I have 5 Categories
Cocina Fiesta ID #4
Extra Virgin Olive Oil, Grape Seed Oil & Aged Balsamic Vingar ID#2
Subcategory Aged Balsamic Vinegar ID #5
Seasoned Oils and Dressings ID #1
Seasoning Blends & Sea Salts ID #3
Recipes ID #6
I would like to make them all look like the Seasoned Oils and Dressings category...it is surrounded by it's own bounding box.
I am just unsure of what exactly needs to be done to accomplish this. Plus some of my categories aren't showing, and one is linked to the Cat 3 Sample.
Any help would be appreciated.
What was unclear or hard to find in the readme?Your Aged Balsamic Vinegar subcategory will only show when its top cat is selected - this is standard Zen Cart behavior.Quote:
There are numerous examples set by default to display the mod's functions; you will probably want to turn many of them off for your situation. See the appropriate readme section for adjusting each function.
'''
To display images in place of selected category names:
...
If you do not wish to use the image feature, delete any matching image files.
The SEASONING BLENDS & SEA SALTS: category text is currently replaced by the "Cat 3 Sample" image; delete that image from /includes/templates/your_template/images/ to get the text back.
FYI that image is in the buttons folder not images folder. Got that category back but my last category Recipes is not showing...any ideas? The line is exactly the same as the other categories in the categories_dressing_defines.php file.
Oops right, /buttons/english/.
Can you post the exact defines you have? Maybe I can see something in them.
//example defines - copy & modify for each category desired
define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...');
define ('CAT_BOX_HEADING_4','1|0||');
define ('CAT_BOX_HEADING_2','1|0||');
define ('CAT_BOX_HEADING_1','1|0||');
define ('CAT_BOX_HEADING_3','1|0||');
define ('CAT_BOX_HEADING_6','1|0||');
//define ('CAT_BOX_HEADING_52','0|1||');//divider only - style 1
//define ('CAT_BOX_HEADING_53','0|2||');//divider only - style 2
//define ('CAT_BOX_HEADING_FEATURED','0|0|||Featured Heading|3');//no list break - text heading
//define ('CAT_BOX_SUBTEXT_23','Subtext for cat 23 escape apostrophe\'s|1');//subtext - style 1
Are you certain the Recipes category is enabled in admin? Catalog > Categories/Products > red/green dot. What type of product are the recipes? If they are restricted to Document-Product, they will not appear in the categories menu if you have set Configuration > Layout Settings > Split Categories Box to true.
They are set to be documents only, since they will just be recipes using the products. Recipes showes up in the navigation that appears at the top of the page that I have disabled.
I will check the setting you mentioned and see what that is set to.
I set the Configuration > Layout Settings > Split Categories Box to false and it still didn't show up. Once I removed the restrict to General setting, it showed up. I will just have to manually choose the right product type when entering the recipes.
Thanks for the help.:clap:
Hi, ive been stuck on this for ages now ive managed to put image links on for my product categories but i cant get it to work for the specials, new products and all products links. is there a cpath for these categories?
thanks
and the site is moley.comlu.com
Those are not categories, and there is no cPath for them. Instead, they have URLs with main_page=products_all or whatever.
I have added the ability to do image substitution for those links, but will have to check on whether it is in the v2.7.3 standard files, or just a tip posted in this thread.
Hello,
We have a lot of categories and would it be possible to show just some of it on the main page?
For example, we have 10 main categories and each one has at least 10 subcategories.
Instead of showing all of them, we would like to show all main categories but only the first five of the subcategories like below.
Main Cat 1
Subcat Cat 1
Subcat Cat 2
Subcat Cat 3
Subcat Cat 4
Subcat Cat 5
View All
and so on.
And when a visitor clicks on a subcategory, only the categories in that main category will show or be active on the sidebox.
Sorry if it sounds too confusing, been working on it all day and its quite late now.
Regards
Limiting the visible subcats for any one top cat is easy:
#categories li li+li+li+li+li+li {display: none;}
for hiding sixth and following subcats.
But showing the hidden subcats on selection would require a code change, as the classes that indicate this status are on the <a> elements and out of the selector ancestor stream.
There is a standard option in the defines to show all top cats when none are selected, then show only the whole active tree or the active branches when one is selected.
Hello,
Decided not to show any subcats on the main page but cant get any of the top categories either.
The closest setting to what we need is 5/0/2 but this doesnt show the top categories. I tried the other settings but it doesnt work or maybe my combination is wrong.
I sent you the link to the site to see our current settings.
Thanks
Try 2|0|2 for all top cats when none is selected, active tree only when one is selected.
If none of these gets the exact setup you want, a custom case can be written for the define (there are various examples earlier in this thread).
Hello,
Tried 2/0/2 but it shows top and sub categories on main page. It also shows the top category on the active category which we would like to hide so I think setting 5 is the closest to this.
Just need top categories on main page.
Thanks
You have chcategories installed, which will show top and subs on the homepage. You need the base Categories Dressing package for your situation. Case 2 will show top cat as well as subcats when in the active tree, so you would need a slight modification. Add a new case 6 in /includes/functions/extra_functions/categories_dressing_functions.php (function cat_active_level_manage($path) { ) like this:If you want to show all sub-subcats of the current top cat, you would need chcategories as well as a different custom case.PHP Code:
case 6://active only, without top (all tops when no cat selected)
if($cPath_top != $path_top and $cPath_top != 0) $skip_cat = 1;
if($cPath_top == $path_top and $cat_depth == 0) $skip_cat = 1;
break;
Hi,
Thanks for taking the time to reply.
Im sorry if I wasnt very clear to what we need but we are after the sub-subcats as well.
Below is the list of what we are trying to achieve.
* Top Cats on main page only.
* When a Top Cat is selected, all subcats and sub-subcats are shown but without the Top Cat.
Best Regards
What you want is a combination of cases 2,3 and 5:Something like this:PHP Code:
case 2://active only (all tops when no cat selected)
if($cPath_top != $path_top and $cPath_top != 0) $skip_cat = 1;
break;
case 3://full active tree, others per level
if($cPath_top != $path_top) $test_level = 1;
break;
case 5:// show active, no top, per levels
if ($cat_depth == 0 or $cPath_top != $path_top) {
$skip_cat = 1;
}else{
$test_level = 1;
}
Then use 6|1|3 for your define.PHP Code:
case 6://full active tree, per levels (only all tops when no cat selected)
if($cPath_top != $path_top and $cPath_top != 0) $skip_cat = 1;//skip all non-active tree
if($cPath_top == 0 and $cat_depth != 0) $skip_cat = 1;//skip all subcats when none active
if($cPath_top == $path_top and $cPath_top != 0) $test_level = 1;//show active tree per level settings
break;
This allows your specific layout desire as well as many other variations of it.
Hello,
That does the trick :)
Thank you so much! Definitely one of the best module available.
Best Regards
I have Category Tab Simple Dropdown Menu installed and I am trying to get the categories sidebox to show the subcategory of the selection made in the tabs across the top.
If I select the top category from the tabs at the top then the sidebox will show the category top level and its subcategories only, but if I choose the subcategory from the dropdown from the tabs at the top then the sidebox does not show any categories, or sub categories.
Zencart 1.3.9 on a test server not a live server so can't show a link. the define I have set up for the categories dressing is: define('CAT_BOX_ACTIVE_LEVEL', '2|0|2');
how can I get it to feed from the subcategory that is being selected on the tabs.
The simple dropdown had (still has?) a bug that does not show the top category in the cPath when a subcat is selected. That may well be causing the Categories Dressing malfunction, as it depends on the cPath for many calculations.
gjh42,
Thank you for the reply. I am assuming that I should pop the question to that support thread. Is it not such an easy fix if the bug is still there?
hello
beginner here!!
where does it tell the mod to use catimg3.gif
if that is even a legit question
thanks
colin
MikeyG - I think someone posted a fix for the bug, but not sure if it got officially updated.
deckandpool - The code automatically looks for the existence of an image name matching the category id, and uses it if it finds it. Just delete that demo image or change its name.
G
thanks
colin
Hi there,
I've got some problem with my category-listing in the sidebox.
I want to hide the top-level category and show the "top-level-sub-category".
Here's my site. As you can see there's only one top-category but there will be more.
http://www.toffeliten.utkast.net/ind...index&cPath=52
Here's an example of what I mean:
Headcategory
- Subcategory
- - Subcategory level 2
- - Subcategory level 2
- - Subcategory level 2
- Subcategory
- - Subcategory level 2
- - Subcategory level 2
All I want is to only show the Subcategory and not the Headcategory or Subcategory level 2.
Is this possible with this module?
I also use a templatemonster template if that's to any help :P
Here's my tpl_categories code
PHP Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
* @version $Id: tpl_categories.php 4162 2006-08-17 03:55:02Z ajeh $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
//$content .= '<ul>';
// SPD COMMENTED OUT for ($i=0;$i<sizeof($box_categories_array);$i++) {
// SPD COMMENTED OUT switch(true) {
// SPD ADDITION SINCE COMMENTED OUT ABOVE
$current_top = 0; //show active cat tree - initialize - above for loop
$iteration_top = 0; //show active cat tree - initialize - above for loop
for ($i=0;$i<sizeof($box_categories_array);$i++) {
switch(true) {
//SPD END ADDITION
// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['top'] == 'true'):
$new_style = 'category-top';
break;
case ($box_categories_array[$i]['has_sub_cat']):
$new_style = 'category-subs';
break;
default:
$new_style = 'category-products';
}
// SPD COMMENTED OUT
//if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// // skip if this is for the document box (==3)
//} else {
// SPD END COMMENT OUT
// SPD ADDITION SINCE I COMMENTED OUT SECTION ABOVE
if ($box_categories_array[$i]['current'] and $box_categories_array[$i]['top'] == 'true') { //show active cat tree - if current and topcat
$current_top = str_replace("cPath=","",$box_categories_array[$i]['path']); //show active cat tree - set = current topcat
} //show active cat tree
$iteration_top = str_replace("cPath=","",str_replace(strchr($box_categories_array[$i]['path'],"_"),"",$box_categories_array[$i]['path'])); //show active cat tree - set = this iteration's topcat
if (($current_top != $iteration_top and isset($cPath) and $cPath != 0) or (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1))) {
// skip if this is for the document box (==3) OR (show active cat tree) if not in/under current topcat and there is a selected cat
} else {
// SPD END ADDITION
// $content .= '<li>';
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>';
} else {
$content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>';
}
} else {
$content .= $box_categories_array[$i]['name'];
}
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= CATEGORIES_SEPARATOR;
}
if (SHOW_COUNTS == 'true') {
if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
$content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
}
}
$content .= '</a><br>';
//$content .= '</li>';
//$content .= '<br />' . "\n";
}
}
//$content .= '</ul>';
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}
//$content .= '<ul>';
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
$show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
//$content .= '<li>';
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . "\n";
//$content .= '</li>';
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
// display limits
// $display_limit = zen_get_products_new_timelimit();
$display_limit = zen_get_new_date_range();
$show_this = $db->Execute("select p.products_id
from " . TABLE_PRODUCTS . " p
where p.products_status = 1 " . $display_limit . " limit 1");
if ($show_this->RecordCount() > 0) {
//$content .= '<li>';
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a>' . "\n";
//$content .= '</li>';
}
}
if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
$show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
//$content .= '<li>';
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a>' . "\n";
//$content .= '</li>';
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
//$content .= '<li>';
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
//$content .= '</li>';
}
//$content .= '</ul>';
}
$content .= '</div>';
?>
You will lose your template-specific tpl_categories.php when you install Categories Dressing, as they are totally different and not practical to merge; however, CD does have a setting for highest and lowest level of category to display, so you could show just the first-level subcats in the sidebox, no top or second-level.
I notice the commented-out <ul><li> code in that file... it would give a fake list which would not actually show nested subcategories as nested lists, but all would be in one continuous list. Categories Dressing creates a correctly nested set of <ul> lists for your sidebox, no matter what levels you have hidden.
Okey, once I've installed the module what do I have to do to configure it as I want?
The readme details all of the settings available. You would probably want to turn off most of the features and delete/rename some demo images; then you will need to edit categories_dressing_defines.php as described in the readme to uncomment and set the define for level control.
define('CAT_BOX_ACTIVE_LEVEL', '0|1|1');
gjh42
Just to let you know your link with the fix worked for the tab nav and the sidebox to work. and I now have my site working as I wanted. Thank you.
I have one other question at the moment.
If I wish to have a particular subcategory appear in the categories sidebox, as the specials / new listing can below a divide line, for example. Is this possible to control from the defines.
I basically want a link to a sales or EOL category to appear in the side box below the main categories when the box appears on any other page apart from the front page, but don't want to make it a top category as this would then appear in the header tabbed categories and throw out the list there as it would then become too long going across the page.
www.funkymoose.co.uk if you need to take a look at how the site is working with the categories side box and top header nav tabs. The last category is gifts and it would be good to be able to show additional specific categories , or subcategories (1st or 2nd level) below it (with or without a divide line or other formatting )
Thanks
Without custom coding, your best bet is probably to add a new top category named Sales or whatever, with sort order set to higher than any other top cats. You can define a divider to go above it - see the readme for instructions. Then you can use a CSS rule in your stylesheet to hide that category in the header.
Hi Glenn,
Just noticed this on my site. ( did never check ever since it was online :huh: )
the categories dressing text became bigger on
index.php?main_page=checkout_payment
(see attached image)
but normal on all pages of my site.
no similar problem found like mine.
do you know how to fix this?
Thanks
oh! no need for reply got it fix. I uninstalled other paypal checkout mode. Thanks:clap:
As a guess, there may have been something in a stylesheet for the paypal mod that affected links or other text outside of itself. Otherwise, it would have had to be some HTML error the mod introduced which interfered with the correct sidebox building... no idea what that might have been.
Hi everyone,
I am going crazy and hope someone can help. I do use v2.7.3 and chdressing for the full tree. I have also tested the code with Case 6 and Case 7 (as provided in this forum) without success.
Sorry on localhost so no preview unless it becomes a last resort then i can put it online.
Now my question is can the first level of subcategories be displayed in the main/home page? I can get all other settings to work on teh suband subsub levels but not on the first page where only the main categories are shown (unless you click on them) where I want the first level of subcategories to be already expanded without any clicking. Basically the catalogue looks like:
Category 1
Subcategory 1
Subcategory 2 etc
Subsubcategory 1
Subsubcategory 2 etc
Category 2
Subcategory 1
Subcategory 2 etc
Subsubcategory 1
Subsubcategory 2 etc
There will only be two main Categories so I want to be able to show throughout the site the following:
Category 1
Subcategory 1 etc
Category 2
Subcategory 1 etc
Currently all attempts to show the above only work once someone has already clicked on a category then the subs showing but I can not get the subs in the main page.
Hope it makes sense and any ideas, suggestions will be welcome .
Thanks
Tassos
My apologies and disrgard my last post. After two days nonstop on the pc it got the better of me. I have figured it out now. Thanks for the great mod.
Hi Glen,
I've taken on a new project, or rather we're expanding our floristry webiste into a new, wholesale website at www.silkblooms.co.uk/wholesale. I've decided to opt for a new Template Monster 1.5x template this time but I can forsee some problems with the category tree as it's been coded for top level and one sub level category only. Unfortunately, our new site will have top level and then two sub levels so it's acting quite strangely. Can you take a look at the Template Monster demo, then compare it to what we're getting so far:
http://www.templatemonster.com/demo/38409.html
V
http://www.silkblooms.co.uk/wholesal...ain_page=index
Do you think it'd be better to install Categories Dressing in place of the category tree from the templeate? Will it be easy to implement so that the categories look and behanve the way they should, rather than the way they're behaving now?
Click on the "Wedding Collection" category and we'd like it to be more like this:
Attachment 10354
At the moment, it's like this:
Attachment 10353
I didn't see the way your site was behaving before you installed Categories Dressing on it, so there's not much to say about your initial questions. You certainly can style subcats as desired, with what you already know about Cat Dressing.
Hi Glen,
I reckoned the easiest way was to install Categories Dressing as the template category tree would have probably needed re-writing. So, I'm trying to make it look like this:
http://www.templatemonster.com/demo/38409.html
This is the first I've used the latest version of Categories Dressing. For the life of me can'tfigure out how to remove the hover background image or the heading that says, "Cat 3 Sample".... I'm sure it'll tell me in this thread somewhere... I'll have a look.
Hi Glen,
That was easy :) I've removed the headings and the backgrounds colours and borders.... Now I just need to figure out the indents. They seems to be quite large.... Where should I be looking to make the indents much lower?
Also, how would I add a dotted line to seperate all the top level categories, similar to the template file?
Another question, when a category is open (expanded) is there a way to make it restore (contract) back by clicking on an open (expended) category to make it close?
we have been using categories dressing on a site with images instead of text for Cat name with no problems until now. We added 3 new categories recently and today one of employees added the code for the images. For whatever reason these are not showing. Is there a limit set somewhere. The code appears fine from what we can see. Everything appears to follow in line with our previous setup of this mod. Any ideas?
There is no limit on category text>image replacement. Can you post the category image filenames you used?
limelites - The subcats have margins and padding on the left which can be adjusted in the stylesheet, for example:
stylesheet_categories_dressing.css (line 93)#categories ul ul {/*subcategory lists*/
list-style: none;
/* background: #ffeecc;*/
border: none;
margin: 0 0 0.7em 0;
padding: 0 0 0 0.8em;
}
and under
#categories ul {/*top category lists*/
You may also have had the default Zen Cart subcat indent spacing active; if so, it seems you have now eliminated that.
Dotted lines separating top cats would best be done with something like
border-top: 1px dotted #aabbcc;
in the
#categories ul a {/*top categories*/
rule.
Category menus that expand and contract on clicking can only be done with javascript ("accordion menu"). This would have to be a completely different set of code.
Hi Glen,
I have a few questions/issues but let's deal with them one at a time. RE the dotted lines to seperate top level categories, I can't seem to get this one. Here's the css in stylesheet_categories_dressing.css:
#categories ul a {/*top categories*/
display: list-item;
list-style: disc inside url(../images/bullet1.gif);/*change to list-style: none; to remove bullet*/
background: no-repeat;
/*border: none;*/
border-top: 1px dotted #aabbcc;
margin: 0;
padding: 0;
background:none;
font-family:"Times New Roman", Times, serif;
font-size: 1.0em;
text-transform:none;
}
...... it seems to have no effect.
Hi Glen,
Got the dotted lines working... I'm being really picky here but is there a way to increase the distance between dots? Also, is there a way to remove the top one from above the "Wedding Collection" category?
the image names both those that do show that were there before and the new ones are named like ie: catbg67.png, catbg79.png etc
It is only the new ones that are not showing. The images that were exisiting already are still working just fine. Those that were added are not showing at all.
Do they all have the .png extension? Have you set the extension from the stock .gif to .png? Are they all in the right folder (/includes/templates/your_template/buttons/english/)?
Yes they all have .png extension and all are in the correct folders.
They set as per example below. both the current that are working and the non working ones
#categories li a.catBg86:hover {
background-image: url(../buttons/english/catbg86.png);
}
#categories li a.catBg86 {
background-image: url(../buttons/english/catbg86.png);
height: 102px;
}
It appears you're trying to use the "sprites" technique for hover effects. You need to put the :hover rule after the base rule so it is effective when you are hovering. You don't want to use the height for controlling the sprite position, but the background-position property. For example:Code:/*example for individual category as bg image*/
#categories li a.catBg25 {
background-image: url(../buttons/english/catbg25.gif);
height: 30px;/*image is 60px high (main above hover) or 90px high (main above hover above selected)*/
}
/*example of "sprite" for bg image switch on selected*/
#categories li a.cat-parent.catBg25, #categories li a.cat-selected.catBg25 {
background-image: url(../buttons/english/catbg25.gif);
background-position: 0 -60px;/*move up 60px*/
}
/*example of "sprite" for bg image switch on hover*/
#categories li a.catBg25:hover {
background-image: url(../buttons/english/catbg25.gif);
background-position: 0 -30px;/*move up 30px*/
}
What is the cPath for each of these categories (some working and some non-working)?
I installed categories dressing 2.7.3 with Uncollapsed Categories Tree on a local WAMP server for testing and tweaking.
I made some changes in stylesheet_chcategoreies_dressing.css (colors, borders...) and after that the following changes in categories_dressing_defines.php for tree and two dividers:
define ('CAT_BOX_ACTIVE_LEVEL', '4|0|1||');
define ('CAT_BOX_HEADING_202', '0|1||');
define ('CAT_BOX_HEADING_297', '0|1||');
202 - is cPath for the 'Consumabile imprimante laser' (Supplies for Laser Printers)
297 - is cPath for the 'Reincarcare cartuse laser' (Refill laser cartridges)
After the changes in categories_dressing_defines.php occurred two empty spaces with two blue arrows (highlighted in red).
How do I remove these two spaces and two arrows?
Using ver 1.3.8a. and iC_Atheme v1.3.
Testing on I.E. V7, Firefox V11 and Opera 11.
My real website where I have not applied the changes is http://consumabile.org (in Romanian).
I am a novice and this is my first site for my personal business.
Thanks in advance,
Gabriel
It looks as if you have blank categories above each of those dividers, but I can't be sure what is going on without seeing it live. Can you post the view source for that part of the sidebox? That would at least give me a start on what is happening.
limelites - I don't know of a way to change the CSS "dotted" display characteristics.
You can hide the topmost border with
#catGroup1>li:first-child>a {border-top: none;}
This will not work on old versions of IE (~6 or 7), but should work on all modern browsers.
Thanks gjh42, now I go to bed...local time is 1:00AM
Here is an image with these modifications (undo divider):
define('CAT_BOX_ACTIVE_LEVEL', '4|0|1');
//define('CAT_BOX_HEADING_202','0|1||');
//define('CAT_BOX_HEADING_297','0|1||');
//define('CAT_BOX_HEADING_203','0|2||');
And here is the source:
<div class="leftBoxContainer" id="chcategories" style="width: 220px;">
<h3 class="leftBoxHeading" id="chcategoriesHeading">Catalog de produse</h3>
<div id="chcategoriesContent" class="sideBoxContent">
<ul id="catGroup201">
<li class="cat-top"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=201">Consumabile imprimante inkjet</a>
<ul id="catGroup201_288">
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=201_288"> Consumabile Canon inkjet</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=201_289"> Consumabile HP inkjet</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=201_290"> Consumabile Lexmark inkjet</a></li>
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=201_239"> Solutie de desfundat cartuse</a></li>
</ul></li>
<li class="noLi"><hr class="catBoxDivider1"></li>
<li class="cat-top"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202">Consumabile imprimante laser</a>
<ul id="catGroup202_291">
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_291"> Consumabile Canon laser</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_292"> Consumabile HP laser</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_293"> Consumabile Kyocera laser</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_294"> Consumabile Lexmark laser</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_295"> Consumabile Samsung laser</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=202_296"> Consumabile Xerox laser</a></li>
</ul></li>
<li class="noLi"><hr class="catBoxDivider1"></li>
<li class="cat-top"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297">Reincarcare cartuse laser</a>
<ul id="catGroup297_298">
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297_298"> Reincarcare cartuse Canon</a></li>
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297_299"> Reincarcare cartuse HP</a></li>
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297_300"> Reincarcare cartuse Lexmark</a></li>
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297_301"> Reincarcare cartuse Samsung</a></li>
<li class="cat-products"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=297_302"> Reincarcare cartuse Xerox</a></li>
</ul></li>
<li class="noLi"><hr class="catBoxDivider2"></li>
<li class="cat-top"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=203">Consumabile copiatoare</a>
<ul id="catGroup203_240">
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=203_240"> Cartuse originale copiatoare</a></li>
<li class="cat-subs"><a class="cat-not-selected-text" href="http://localhost/zencart/index.php?main_page=index&cPath=203_241"> Cartuse compatibile copiatoare</a></li>
</ul></li>
</ul>
<hr id="catBoxDivider">
<ul class="catLinks">
<li><a class="category-links" href="http://localhost/zencart/index.php?main_page=products_all">Toate produsele ...</a></li>
</ul>
</div></div>
Actually we do not really need the hover feature at all. Just a straight button. I know it is fairly graphic intensive but this is how the owner wants it. He is very very picky LOL
A link to a working one is
http://www.koisale.com/KoiStore/inde...index&cPath=79
A non working one is
http://www.koisale.com/KoiStore/inde...ndex&cPath=107
BTW thanks so much for your help.
This is really very strange. I cannot see any reason at all why those three categories should not work when the rest do. They are even interspersed in the stylesheet, so there could not be an error that cuts off the end from processing.
Since you are not using hover features, it would be simpler for you to make the images foreground instead of background images. Rename or copy catbg67.png to catimg67.png and see if that is picked up. The stylesheet rules would then become redundant except for a general rule that top categories are 102px high.
In stylesheet_chcategories_dressing.css at line 72 I have reinsert the border (a white one) and the issue is resolved but do not know why.
#chcategories ul {/*top category lists*/
list-style: none;
background: none;
border: 1px solid #ffffff; ---> before it was changed by me to: none
margin: 0 0 0.4em 0;
padding: 0;
}
Thanks for this plugin gjh42 !
Nope that didn't work either.
Ok so this issue gets weirder the more I try to fix it. I was able to rename the image yesterday and it didn't work. Today I went to rename it and my ftp program gave me an error. I tried to download the image to see if the creator of it maybe did something strange to it accidently. It will not download also throws an error. However I can download, rename etc any other image file in the buttons that was not done by this other person. Is there any possibility this image file is corrupt and that is what is causing the problem?
I have upload the mod on my site: http://consumabile.org
It looks ok on Firefox 11, Opera 11 and Chrome but it is not ok on IE7...the space is still there (see image down).
Best regards,
Gabriel
ravynw - It does sound like there is something corrupt about the image itself, though why that would cause the code to not find it I still have no clue. Reopening and saving it with careful attention in your image program might help... For interest, you might try reopening a COPY of one of the images that does work (temporarily rename the original for holding purposes), save that copy and test it on your site. If the copy fails to work, that would indicate something wrong with your image program. Then delete the copy and restore the original if necessary.
gabicen - IE7 is very old and buggy and not widely used, and I would put a lower priority on making it look perfect as long as it works correctly. That said, I will look at it when I get a chance and see if a known bugfix is applicable to making it look right.
[QUOTE=gjh42
gabicen - IE7 is very old and buggy and not widely used, and I would put a lower priority on making it look perfect as long as it works correctly. That said, I will look at it when I get a chance and see if a known bugfix is applicable to making it look right.[/QUOTE]
I do not care how the site looks in IE7 so you should not bother with this problem.
Thanks again for this plugin.
Gabriel
So we still have not been able to resolve this issue. The image seems to be fine. Just for whatever reason it is not being called or being read. We would really like to be able to get this resolved. But are out of ideas at this point.
You said you had someone else create the new images. What technology did they use? Was it different from that used for the original images? What happens if you create an image using a different program, or another instance of the same program?
The only other distinguishing fact about the non-working images seems to be that they were created recently, and applied to categories that were created recently. Has there been any change in your hosting circumstances? (This is a total WAG, as I can't imagine how such a change could have an effect on these elements.)
Have you tried this? What happened (in as much detail as possible)?Quote:
you might try reopening a COPY of one of the images that does work (temporarily rename the original for holding purposes), save that copy and test it on your site.
I am not sure what program they used to do the images. But the original images were done by the same person. So that should not have been a factor. We even changed the original images from a .gif to .png and they still work just fine. It is only the new images that have this issue. They have not changed hosts at all. They do host on godaddy (ya never know) LOL
But i do agree with you that this is the strangest thing. It doesn't make any sense what so ever.
I have installed the Categories Dressing Mod and now have 2 category sideboxes. It put a sidebox named New Products on my left hand sidebox that I do not want on there. What I want to do now is remove that sidebox and adjust the 2 categories so that they show the respective products. One is Designs and the second one will be clipart. I want to separate the 2 categories. You can view my site at: www.fit2bstitched.com Does anyone know how I can do this?
Ok, I figured out how to turn off the New Products sidebox. Now I just need to learn how to separate my 2 categories.
Ellen
You could not get a New Products sidebox from installing Categories Dressing - there must have been something else you did at the same time to bring that up. You have it sorted now, anyway...
I see you have installed both the base Cat Dressing and the ch_categories option. You do not need or want both of them for your situation. Unless you want the expanded categories, you should delete the ch_categories files. There is not a one-click method for this; you will need to find and delete each of those files (and only those). If you might want that option, you could just turn off the chcategories sidebox in Tools > Layout Boxes Controller, and rename stylesheet_chcategories_dressing.css to stylesheet_chcategories_dressing.bak.
Read the instructions for creating category groups. You will want to make two groups, one starting with the first category in Designs and one starting with the first category in Clipart. Make new defines in categories_dressing_defines.php like this
replacing 33 and 77 with the ids of the first categories in Designs and Clipart.PHP Code:
define ('CAT_BOX_HEADING_33','1|0|||Designs|1');//new list - text heading - style 1
define ('CAT_BOX_HEADING_77','1|0|||Clipart|1');//new list - text heading - style 1
You currently have all of your categories arranged alphabetically, presumably with Design and Clipart intermixed. You will need to go into Catalog > Categories/Products and assign a sort order to each category. Make all of the Design categories lower numbers than the Clipart categories, and number them with gaps like 10, 20, 30, 40 so you can easily insert new categories later.
Once you have your groups, read the styling section of the readme, then post back and ask how to get the boxes.
I have adjusted the categories_dressing_defines.php page just as you told me. I read the styling section and checked my stylesheet. I did not find any reference to a.category-top, a.category-subs or a.category-products anywhere on the stylesheet. We have also renamed our folder the way you suggested.
Now how do I get the boxes?
Ellen
You now seem to have completely removed all of the Categories Dressing files... not sure what you actually did, but you need to have the mod's base /includes/ folder with its files installed. The base stylesheet_categories_dressing.css needs to be in place.
Once that is sorted out, you will want defines for either category 37 or 1 depending on whether Designs should start with NEW PRODUCTS or Animals, and for category 199 assuming that the second Animals is the first category of Clipart. SoThen in stylesheet_categories_dressing.css find the rule for .catBoxHeading1 and change it to match your desires:PHP Code:
define ('CAT_BOX_HEADING_37','1|0|||Designs|1');//new list - text heading - style 1
define ('CAT_BOX_HEADING_199','1|0|||Clipart|1');//new list - text heading - style 1
Find the rule for ul#catGroup48 and add new rules for ul#catGroup37 and ul#catGroup199:Code:.catBoxHeading1 {
font-family: georgia, serif;
font-weight: bold;
font-size: 1.4em;
color: #335511;
background-color: #ff66ff;
padding: 0.3em 0.4em;
margin: 0;
}
Again, adjust the colors etc. to suit yourself.Code:/*example for custom category group styling*/
ul#catGroup37, ul#catGroup199 {
border: 1px solid #bd6699;
background: #bbeeff;
margin-top: 1.5em;
}
Add another pair of rules:Code:#categories {
border: none;
background: transparent;
}
#categories>h3 {display: none;}
Just a quick note on the problem we had with the mod not showing new images. /includes/functions/categories_dressing_functions.php was our problem the whole time. We had changed our images from a .gif to .png extension. Although we did change the call in the stylesheet apparently you need to also change it in that file as well. Here is the line
Find
$cat_name_display = zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/catimg' . $current_path . '.gif', '', '', '', 'title="' . $cat_name_display . '"');
Change to
$cat_name_display = zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/catimg' . $current_path . '.png', '', '', '', 'title="' . $cat_name_display . '"');
I had forgotten that v2.7.3 required that multiple edit... my development v2.8 uses a constant to hold the extension type, so it only needs to be set in one place in the defines file.
Ok, I'm so lost. I have tried to do what you said but things just don't want to work for me. I wish I knew more about this coding. I can't get rid of the Major headding/ Minor heading. It should read Clipart, but I can't find where to change that. The subjects are falling where they should either. I just don't know what to do anymore.
Ellen
The Major/Minor will disappear if you delete the define for 'CAT_BOX_HEADING_3'.
You did not add the defines for 'CAT_BOX_HEADING_37' and 'CAT_BOX_HEADING_199' as I directed you to do; instead, you have a define for 'CAT_BOX_HEADING_10'.
I guess I got lost with the first instructions you sent me. You told me to name them the numbers of our folders which were Designs starting with 10 and Clipart starting with 300. That's why they were named like that. I have adjusted per your recommendations now. I went through and deleted references to box 3 and I still have the Minor Heading. Not sure where else to look for that, which sheet I need to look at. Thank you so much for all the help you have given me. I'm so sorry to be such a pain. I started fresh this morning looking at your instructions and the php and css sheets. These are the only sheets I have installed for this mod as I didn't want the buttons. I'm a lot closer to what I wanted now than I was before, but still don't have the categories in the right boxes.
Thanks again,
Ellen
Maybe I have not made clear what numbers you are supposed to be using for the defines.
When you say 10 and 300, are those the sort orders you gave to the first categories in each set? The sort orders are irrelevant to us except for getting the categories in the right order.
The important numbers are the "cPath" (or category id for top cats). You can find this in Catalog > Categories/Products; looking at the list of categories, the cat id is on the left edge. You never said which categories are supposed to be the first ones in each group, so I had to assume it was NEW PRODUCTS for Designs and the second Animals for Clipart. These are categories 37 and 199, which is why I told you to make those specific defines.
You cannot get the Major/Minor headings without a define in categories_dressing_defines.php for CAT_BOX_HEADING_3. Find that line and delete it.
This is all I have on the categories_dressing_defines.php page:
<?php
/**
*
* @copyright Copyright 2009 Glenn Herbert
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/licenses/ GNU Public License V3.0
* Categories Dressing v2.7.3 - Glenn Herbert (gjh42) - 20090505
* includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php
*/
//example defines - copy & modify for each category desired
define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...');
[define ('CAT_BOX_HEADING_37','1|0|1||Designs|1');//new list - text heading - style 1
define ('CAT_BOX_HEADING_199','1|0|1||Clipart|1');//new list - text heading - style 1
}
//
//display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination.
//only uncomment and set this define if you want to hide cats based on active tree or level
// 'active|highest_level|deepest_level'
//active: 0=all tops/1=full active tree only/2=active only (all tops when no cat selected)/
//3=full active tree, others per level/4=like 3, active branches only/5=like 1, no tops|
//highest_level: 0=all levels/1=no topcats/etc.|
//deepest_level: 1=only first subcats/2=first & second subcats/etc.
//
//define('CAT_BOX_ACTIVE_LEVEL', '0|1|1');//hide top cats
//define('CAT_BOX_ACTIVE_LEVEL', '0|1|1');//show only active cats, to first subcat level
?>
Ellen
Very strange, because that is not the file that is controlling your menu display, at least not the only file. Somewhere there is a file with defines for categories 10 and 3. Are you sure about what files are in /includes/languages/english/extra_definitions/cherry_zen/ ?
I see you have gotten an extra "1" in the defines, which in that position would be read as an image filename and not work correctly. That might explain why the clipart heading is not working. The other define has a stray [ in front of it which is most likely disabling it completely. They should look exactly like this (copy & paste):PHP Code:
define ('CAT_BOX_HEADING_37','1|0|||Designs|1');//new list - text heading - style 1
define ('CAT_BOX_HEADING_199','1|0|||Clipart|1');//new list - text heading - style 1
You were right it looks to me like when I installed it the program copied it to other places. I have it right now and the site looks just like we wanted it to.
Thank You so much for your advise and patients with me!
Ellen
Hi Glenn.
Is it possible to have the categories listed into two columns?
Somthing like this?
Category one
subcat-1 subcat-4
subcat-2 subcat-5
subcat-3
Category two
subcat-1 subcat-4
subcat-2
subcat-3
Category three
subcat-1 subcat-4
subcat-2 subcat-5
subcat-3 subcat-6
Thank you
Yes, limelites has done it on at least one of his sites - you could look at the view source and the CSS to see how it is organized.
Essentially, you would make a new category group for the set of subcats you want in the second column, then give both groups widths just less than half of the total sidebox space. Probably the best way to put the second column beside the first is to give it position: absolute; and top: and left: properties to put it where you want it. Nothing else will be trying to occupy that space to the right of the first column, so everything should fit neatly.
Thank you, I'm trying it, I'll post in case of further need.