sethererm:
Hi,
I was curious if it would be possible if I wanted to remove a specific category from the dropdown by session ID - preferably only in the drop down menu template file?
I was wanting to link to it from a different area on the website, but not from the main category.
If it's possible, it would be awesome to exclude it from the category link - and then I can directly link to it from a different link further down on the page.
Thank you for your help!
That is of course possible, it's just a matter of being able to create the coding for it. Basically you need some php that says
if category_id=(number of category you don't want), then,
Don't show.
If you open up includes/classes/categories_ul_generator.php, you might be able to do something like this:
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
[B]and c.categories_id !=3[/B]
and c.categories_status=1 " . " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " . " order by c.parent_id, c.sort_order, cd.categories_name";
And change the number 3 to the category id number of the category you want to block.
Not sure if it will work, I'm a php hacker, not a php coder. :smile:
Good luck, and back a copy of that file up before making changes.