I'm looking to use the CategoryMenu [[ConLib:CategoryMenu CategoryId="-1" HeaderText="Categories"]] in the left sidebar, but it is showing hidden and private categories.
Is this the default? I'd like the menu to show public categories only.
Version: Gold R7
CategoryMenu Shows Hidden and Private Categories
Re: CategoryMenu Shows Hidden and Private Categories
Yes, it's a bug that will be fixed in the next version. You can open \ConLib\CategoryMenu.ascs.cs and make the following change:
ON LINE 60, change FROM:
TO:
That should take care of it. You might need to recycle the application pool after making the change.
ON LINE 60, change FROM:
Code: Select all
IList<Category> categories = CategoryDataSource.LoadForParent(parentCategoryId, false);
Code: Select all
IList<Category> categories = CategoryDataSource.LoadForParent(parentCategoryId, true);
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: CategoryMenu Shows Hidden and Private Categories
This worked. Thanks!
It did result in an error at first, but after a refresh, the site was back up.
What's the best way to recycle the application pool?
It did result in an error at first, but after a refresh, the site was back up.
What's the best way to recycle the application pool?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: CategoryMenu Shows Hidden and Private Categories
The best way I have found is to make a change in the web.config file. Like set customerrors to Off if it is On, save the file. Then set it back again to what it was and save the file again. You can also make a change in the global.asax file.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx