DynamicRouting.Kentico.MVC
12.29.14
See the version list below for details.
dotnet add package DynamicRouting.Kentico.MVC --version 12.29.14
NuGet\Install-Package DynamicRouting.Kentico.MVC -Version 12.29.14
<PackageReference Include="DynamicRouting.Kentico.MVC" Version="12.29.14" />
paket add DynamicRouting.Kentico.MVC --version 12.29.14
#r "nuget: DynamicRouting.Kentico.MVC, 12.29.14"
// Install DynamicRouting.Kentico.MVC as a Cake Addin #addin nuget:?package=DynamicRouting.Kentico.MVC&version=12.29.14 // Install DynamicRouting.Kentico.MVC as a Cake Tool #tool nuget:?package=DynamicRouting.Kentico.MVC&version=12.29.14
DynamicRouting - Kentico MVC Site
Dynamic Routing for Kentico is a two part system that allows you to automatically handle page requests and route them to certain actions based on the Page Type of the current page. This is done through the automatic generation of Url Slugs that help Kentico identify which Page you are requesting (based on the Url), and Assembly Attribute tags to route that page appropriately.
While the main module consistant of a Kentico "Mother" Nuget package (DynamicRouting.Kentico) and an MVC Nuget Package (DynamicRouting.Kentico.MVC), there is a stand alone MVC package, housed on a separate branch that you can use if you want the Dynamic Routing Attributes without the Automatic Url Slug Generation.
Installation
Installing on the Admin ("Mother")
- Install the NuGet Package DynamicRouting.Kentico on your Kentico Admin instance, and run the site.
- Go to Modules within Kentico's Interface, edit Dynamic Routing, and go to Sites and add the module to the current site.
- If you wish, create Roles and assign the Permissions "Read", "Modify" or "Manage Url Slug" appropriately (Manage Url Slug is needed for users to customize Url Slugs on pages), and assign the Url Slugs UI element under CMS - Adminstration - Content Management - Pages - Edit - Properties - Url Slugs
- Configure Settings in Settings - URLs and SEO - Dynamic Routing if needed
- Lastly, go to Dynamic Routing UI element → Quick Operations, and click
Rebuild Site
to generate your Url Slugs for the first time.
Installing on the MVC Site
- Install the NuGet Package DynamicRouting.Kentico.MVC on your MVC Site, and run the site.
- Configure your RouteConfig.cs (see Project Site for full code)
route = routes.MapRoute(
name: "DynamicRouting",
url: "{*url}",
defaults: new { defaultcontroller = "HttpErrors", defaultaction = "Index" },
constraints: new { PageFound = new DynamicRouteConstraint() }
);
route.RouteHandler = new DynamicRouteHandler();
- Add DynamicRouting assembly tags as needed
- In order to wire up the IDynamicRouteHelper interface, please have it implement the BaseDynamicRouteHelper class, if you are using AutoFac, you would add this to your ContainerBuilder:
builder.RegisterType(typeof(BaseDynamicRouteHelper)).As(typeof(IDynamicRouteHelper));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Antlr (>= 3.5.0.2)
- Kentico.AspNet.Mvc (>= 12.0.29)
- Microsoft.AspNet.Razor (>= 3.2.7)
- Microsoft.AspNet.WebPages (>= 3.2.7)
- Microsoft.CSharp (>= 4.4.1)
- Microsoft.Owin.Security (>= 3.1.0)
- Microsoft.Owin.Security.Cookies (>= 3.1.0)
- Microsoft.Owin.Security.OAuth (>= 3.1.0)
- Microsoft.Web.Xdt (>= 2.1.1)
- Newtonsoft.Json (>= 11.0.2)
- WebGrease (>= 1.6.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DynamicRouting.Kentico.MVC:
Package | Downloads |
---|---|
Authorization.Kentico.MVC.DynamicRouting
Authorization attribute that integrates with Kentico user permissions, including module permissions and page ACL permissions, leveraging the DynamicRouting.Kentico.MVC library for retreiving the page. |
|
RM.DynamicRoutingWildcards.Kentico.MVC
Extends DynamicRouting.Kentico.MVC to support wildcards in urls which map to properties within Controller actions |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
12.29.20 | 2,494 | 2/19/2021 |
12.29.18 | 3,248 | 9/24/2020 |
12.29.17 | 9,561 | 7/8/2020 |
12.29.16 | 724 | 6/15/2020 |
12.29.15 | 526 | 6/12/2020 |
12.29.14 | 3,177 | 4/30/2020 |
12.29.13 | 504 | 4/30/2020 |
12.29.12 | 914 | 4/9/2020 |
12.29.11 | 716 | 3/30/2020 |
12.29.10 | 961 | 2/27/2020 |
12.29.9 | 2,458 | 2/7/2020 |
12.29.8 | 1,058 | 1/23/2020 |
12.29.7 | 1,475 | 1/5/2020 |
12.29.6 | 1,582 | 12/18/2019 |
12.29.5 | 894 | 12/3/2019 |
12.29.4 | 523 | 11/29/2019 |
12.29.3 | 1,472 | 11/18/2019 |
12.29.2 | 514 | 11/12/2019 |
12.29.1 | 522 | 11/12/2019 |
12.29.0 | 569 | 11/11/2019 |
Fixed error where UrlGeneration routes were being trapped by the Dynamic Route so the Url.Action didn't operate correctly.