DNTBreadCrumb.Core Save

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

Project README

DNTBreadCrumb.Core

GitHub Actions status

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

Install via NuGet

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="V5"
             asp-homepage-glyphicon="bi bi-house"></breadcrumb>
  • Now you can add the BreadCrumb attributes to your controller or action methods:
[BreadCrumb(Title = "Home", UseDefaultRouteUrl = true, Order = 0, IgnoreAjaxRequests = true)]
public class HomeController : Controller
{
   [BreadCrumb(Title = "Main index", Order = 1, IgnoreAjaxRequests = true)]
   public ActionResult Index()
   {
      return View();
   }

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

Open Source Agenda is not affiliated with "DNTBreadCrumb.Core" Project. README Source: VahidN/DNTBreadCrumb.Core
Stars
32
Open Issues
0
Last Commit
3 months ago
License

Open Source Agenda Badge

Open Source Agenda Rating