BV Commerce Forum
»
BV Commerce Support
»
Development
»
Limit number of sub categories on top category menu
Rank: Member
Joined: 2/10/2017(UTC) Posts: 62 ![India India]() Location: Nashik, Maharashtra Thanks: 6 times
|
Hello,
Is there any way to show limited list of subcategories in top category menu and include one more option of 'view all' at the bottom ?
E.g:
Suppose my main category is ABC
The list contains 20 sub categories under ABC.
I want to show top 10 sub categories and then view all option at the bottom .
Actually I created new customized function from FindChildrenInCollection() in category.vb and used that customized function in CategoryMenuPlus.ascx. But it reflects on other sections too, like left side category panel. I just want it for top category menu.
Please can anyone help? Thanks in advance for your time.
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,397 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 164 time(s) in 159 post(s)
|
Originally Posted by: TestUser  Is there any way to show limited list of subcategories in top category menu and include one more option of 'view all' at the bottom ? Yes, if you enable the ShowMoreLink property of the CategoryMenuPlus control. Here's the official explanation: Quote:Displays a 'more' link when there are other categories at a given level that are not hidden but not set to 'Show in Top Menu'; you must use this setting in conjunction with the 'Use Show In Top Menu Settings' setting. The 'more' link goes to the parent category. The default value is false. Note that you can also change the "more" text by setting the MoreLinkText property. Edited by user Friday, February 10, 2017 5:46:49 PM(UTC)
| Reason: Not specified |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
 2 users thanked Aaron for this useful post.
|
|
|
Rank: Member
Joined: 2/10/2017(UTC) Posts: 62 ![India India]() Location: Nashik, Maharashtra Thanks: 6 times
|
Thank you so much for your help... It worked as expected :)
|
|
|
|
Rank: Member
Joined: 2/25/2017(UTC) Posts: 1 ![United Kingdom United Kingdom]() Location: Leeds Thanks: 1 times
|
@Aaron Thanks for sharing the ideal solution. This is exactly what I'm looking for. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.