CyberStore Ecommerce 2023 Documentation
BuildMenu Method


Dovetail.Ecommerce.Controls Namespace > CatalogCategoryMenuControl Class : BuildMenu Method
The Category_ID of the Category to start the menu at.
The number of category levels to include int the menu. Maximum of 3.
Build a bootstrap compatible category menu using Yamm.
Syntax
'Declaration
 
Public Function BuildMenu( _
   ByVal StartingCategoryID As Integer, _
   ByVal maxCategoryDepth As Integer _
) As String
'Usage
 
Dim instance As CatalogCategoryMenuControl
Dim StartingCategoryID As Integer
Dim maxCategoryDepth As Integer
Dim value As String
 
value = instance.BuildMenu(StartingCategoryID, maxCategoryDepth)

Parameters

StartingCategoryID
The Category_ID of the Category to start the menu at.
maxCategoryDepth
The number of category levels to include int the menu. Maximum of 3.

Return Value

The menu HTML as a string.
See Also

Reference

CatalogCategoryMenuControl Class
CatalogCategoryMenuControl Members