Close

Can you limit the amount of Categories on Show

mickk
11 years ago
#420 Quote
Avatar
  • 28
Hi

I have added the navigation menu and it works great. Is it possible to limit the amount on show plus which ones to show?

Thanks

Mike
Support
11 years ago
#432 Quote
Avatar
  • Moderator
  • 1015
mickk wrote:
Hi

I have added the navigation menu and it works great. Is it possible to limit the amount on show plus which ones to show?

Thanks

Mike


Hi mickk,

Thank you for using our products!

Yes, you can control, which top level categories to show by their Show on Home page setting.
Follow these steps:
1. Add a new setting with the key below and set it to True:
SevenSpikes.Nop.Plugins.CategoriesHeaderMenu.ShowHomePageTopLevelCategoriesOnly
2. Set Show on Home page for the top level categories you want to be shown in the Header Menu.

To see the changes immediately you might need to Clear Cache from the Administration as the menu is optimized to use caching for better performance.

Hope this helps!
mickk
11 years ago
#433 Quote
Avatar
  • 28
Where do i add the setting?
Support
11 years ago
#434 Quote
Avatar
  • Moderator
  • 1015
Go to the administration panel of nopCommerce:

Configuration -> Settings -> All Settings

Add New Record

And then for the key of the new settings:

SevenSpikes.Nop.Plugins.CategoriesHeaderMenu.ShowHomePageTopLevelCategoriesOnly

And then for the setting value:

True
mickk
11 years ago
#439 Quote
Avatar
  • 28
thanks