The BreadCrumbViewModel is used to populate the trail of navigation that's sometimes injected into the views, which allows customers to find their way back to a top-level area on your site. This article will help you understand what's available to you in the view model.
The following pre-requisites will be necessary to accomplish the goals of this article:
- General understanding of template engines
- Familiarity with template languages
- Familiarity with ASP.NET MVC Razor
There are no tasks needed to get started with understanding this object.
The BreadCrumbViewModel object will contain all of the details of a breadcrumb trail for the current context of the customer viewing your Hotcakes Commerce store.
The following table gives you details on the various members of the BreadCrumbViewModel object. The descriptions are based upon default functionality and the default Viewset included with Hotcakes.
Show home link or not. In some pages and scenarios its required to hide the home link.
|Items||Queue<BreadCrumbItem>||List of the items which are shown in navigation. As a user drills down to nested view, this list get updated each time and enter the new value to list. Remove the item if user move back to the upper level again.|