Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vahidn/dntbreadcrumb.core
DNTBreadCrumb.Core Creates custom bread crumb definitions, based on Twitter Bootstrap features for ASP.NET Core applications.
https://github.com/vahidn/dntbreadcrumb.core
aspnetcore bootstrap breadcrumbs
Last synced: about 1 month ago
JSON representation
DNTBreadCrumb.Core Creates custom bread crumb definitions, based on Twitter Bootstrap features for ASP.NET Core applications.
- Host: GitHub
- URL: https://github.com/vahidn/dntbreadcrumb.core
- Owner: VahidN
- License: apache-2.0
- Created: 2016-09-28T08:56:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T07:09:10.000Z (over 1 year ago)
- Last Synced: 2024-04-28T12:03:52.877Z (8 months ago)
- Topics: aspnetcore, bootstrap, breadcrumbs
- Language: SCSS
- Homepage:
- Size: 2.93 MB
- Stars: 32
- Watchers: 6
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DNTBreadCrumb.Core
`DNTBreadCrumb.Core` Creates custom bread crumb definitions, based on Twitter Bootstrap features for ASP.NET Core applications.
## Install via NuGet
[![Nuget](https://img.shields.io/nuget/v/DNTBreadCrumb.Core)](http://www.nuget.org/packages/DNTBreadCrumb.Core/)
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](http://www.nuget.org/packages/DNTBreadCrumb.Core/) on NuGet.
## Usage:
- After installing the DNTBreadCrumb.Core package, add the following definition to the [\_ViewImports.cshtml](/src/DNTBreadCrumb.Core.TestWebApp/Views/_ViewImports.cshtml) file:
```csharp
@addTagHelper *, DNTBreadCrumb.Core
```- Then modify the [\_Layout.cshtml](/src/DNTBreadCrumb.Core.TestWebApp/Views/Shared/_Layout.cshtml) file to add its new tag-helper:
```xml
```- Now you can add the `BreadCrumb` attributes to your controller or action methods:
```csharp
[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](/src/DNTBreadCrumb.Core.TestWebApp), [TestWebApp.WithFeatureFolders](/src/DNTBreadCrumb.Core.TestWebApp.WithFeatureFolders) and [TestWebApp.WithRazorPages](/src/DNTBreadCrumb.Core.TestWebApp.WithRazorPages) samples for more scenarios.