
Originally Posted by
frank_lyy
Dear Dr. Byte,
If you are available, I have a rather silly question: How do you code the css flyout menu to NOT show "Document General" categories.
I know that the original category box will not show "Document General" cats. Can this css flyout category box not show "Document Category" as well?
In the classes/categories_ul_generator.php file, you have something like this:
Code:
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd, " . TABLE_PRODUCT_TYPES_TO_CATEGORY . " ptc
where c.categories_id = cd.categories_id
and c.categories_status=1 " .
// "and c.categories_id = ptc.category_id " .
// "and ptc.category_id = cd.categories_id " .
// "and ptc.product_type_id not in " . $this->document_types_list . "
" and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by c.parent_id, c.sort_order, cd.categories_name";
The three lines that are commented starting with // were causing problems for some folks; however, if you uncomment those three lines, it should skip the items that normally appear in the documents category box.