Skip to content
DNTBreadCrumb.Core Creates custom bread crumb definitions, based on Twitter Bootstrap 3.x features for ASP.NET Core applications.
Branch: master
Clone or download
Latest commit 5732314 Feb 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create issue_template.md Nov 9, 2017
.vscode Updated to .NET Core 2.2 Dec 6, 2018
src V 1.8 Feb 9, 2019
.gitattributes Add .gitignore and .gitattributes. Sep 28, 2016
.gitignore Add .gitignore and .gitattributes. Sep 28, 2016
DNTBreadCrumb.Core.sln
LICENSE.md
README.md Added CI. Nov 11, 2018
tag-it.bat V 1.8 Feb 9, 2019
update-dependencies.bat

README.md

DNTBreadCrumb.Core

Build status

DNTBreadCrumb.Core Creates custom bread crumb definitions, based on Twitter Bootstrap 3.x and 4.x features for ASP.NET Core applications.

Install via NuGet

To install DNTBreadCrumb.Core, run the following command in the Package Manager Console:

PM> Install-Package DNTBreadCrumb.Core

You can also view the package page on NuGet.

Usage:

  • After installing the DNTBreadCrumb.Core package, add the following definition to the _ViewImports.cshtml file:
@addTagHelper *, DNTBreadCrumb.Core
 <breadcrumb asp-homepage-title="Home"
             asp-homepage-url="@Url.Action("Index", "Home", values: new { area = "" })"
             asp-bootstrap-version="V3"
             asp-homepage-glyphicon="glyphicon glyphicon-home"></breadcrumb>
  • Now you can add the BreadCrumb attributes to your controller or action methods:
[BreadCrumb(Title = "Home", UseDefaultRouteUrl = true, Order = 0)]
public class HomeController : Controller
{
   [BreadCrumb(Title = "Main index", Order = 1)]
   public ActionResult Index()
   {
      return View();
   }

Please follow the TestWebApp, TestWebApp.WithFeatureFolders and TestWebApp.WithRazorPages samples for more scenarios.

You can’t perform that action at this time.