Hi
Ref V6.1.1
If you select a category to not be visible in the menu, it now doesn't show in the site at all and results in a 404. I am sure that this used to be ok, prior to V6. If this is so, does anyone know how to get the categories to show again on the site but not in the menu? Or if it's always been like this, how can I get a category to show in the site but not in the menu?
Thanks
Cheers
Richard
Category page showing on site but not in menu
Category page showing on site but not in menu
ISC Ultimate v6.1.1 - Windows 2003 Server IIS6 - PHP v5.2.13 - mySQL v5.0.51b
Re: Category page showing on site but not in menu
It must be a bug 
It wasn't like this on version prior to v6.

It wasn't like this on version prior to v6.
Re: Category page showing on site but not in menu
Can anyone help me in getting round this?
Thanks
Cheers
Richard
Thanks
Cheers
Richard
ISC Ultimate v6.1.1 - Windows 2003 Server IIS6 - PHP v5.2.13 - mySQL v5.0.51b
-
- Posts: 744
- Joined: Thu Jun 18, 2009 8:59 am
Re: Category page showing on site but not in menu
Open up /includes/classes/class.category - find:
Replace with
So basically find this code and remove it
Be careful what you do going forwards, as this will leave 'off' categories visible to people who have links, though I think other than that there are no issues leaping out.
Code: Select all
$query = "
SELECT
*
FROM
[|PREFIX|]categories
WHERE
catname = '".$GLOBALS['ISC_CLASS_DB']->quote($arrCats[$i])."' AND
catparentid = '".(int)$parentCat."' AND
catvisible = 1
";
Code: Select all
$query = "
SELECT
*
FROM
[|PREFIX|]categories
WHERE
catname = '".$GLOBALS['ISC_CLASS_DB']->quote($arrCats[$i])."' AND
catparentid = '".(int)$parentCat."'
";
Code: Select all
AND
catvisible = 1
Re: Category page showing on site but not in menu
Thank you so much...
Cheers
Richard
Cheers
Richard
ISC Ultimate v6.1.1 - Windows 2003 Server IIS6 - PHP v5.2.13 - mySQL v5.0.51b
-
- Posts: 744
- Joined: Thu Jun 18, 2009 8:59 am