DynamicRouting.Kentico.MVC 12.29.4

Allows for automatic detection of pages based on URL and routing based on refractoring.  For the MVC Site only.

There is a newer version of this package available.
See the version list below for details.
Install-Package DynamicRouting.Kentico.MVC -Version 12.29.4
dotnet add package DynamicRouting.Kentico.MVC --version 12.29.4
<PackageReference Include="DynamicRouting.Kentico.MVC" Version="12.29.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DynamicRouting.Kentico.MVC --version 12.29.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DynamicRouting.Kentico.MVC, 12.29.4"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

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")

  1. Install the NuGet Package DynamicRouting.Kentico on your Kentico Admin instance, and run the site.
  2. Go to Modules within Kentico's Interface, edit Dynamic Routing, and go to Sites and add the module to the current site.
  3. 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
  4. Configure Settings in Settings - URLs and SEO - Dynamic Routing if needed
  5. 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

  1. Install the NuGet Package DynamicRouting.Kentico.MVC on your MVC Site, and run the site.
  2. 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();
  1. Add DynamicRouting assembly tags as needed

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")

  1. Install the NuGet Package DynamicRouting.Kentico on your Kentico Admin instance, and run the site.
  2. Go to Modules within Kentico's Interface, edit Dynamic Routing, and go to Sites and add the module to the current site.
  3. 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
  4. Configure Settings in Settings - URLs and SEO - Dynamic Routing if needed
  5. 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

  1. Install the NuGet Package DynamicRouting.Kentico.MVC on your MVC Site, and run the site.
  2. 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();
  1. Add DynamicRouting assembly tags as needed

Release Notes

Updated CultureName retrieval to use Preview's Culture, followed by LocalizationContext.CurrentCulture, then System.Globalization.CultureInfo.  Fixed Alternate Url Handling to properly delete Alternate Urls for sibling culture matches so no conflicts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
12.29.20 34 2/19/2021
12.29.18 680 9/24/2020
12.29.17 2,002 7/8/2020
12.29.16 262 6/15/2020
12.29.15 157 6/12/2020
12.29.14 535 4/30/2020
12.29.13 138 4/30/2020
12.29.12 223 4/9/2020
12.29.11 297 3/30/2020
12.29.10 364 2/27/2020
12.29.9 1,460 2/7/2020
12.29.8 492 1/23/2020
12.29.7 945 1/5/2020
12.29.6 454 12/18/2019
12.29.5 318 12/3/2019
12.29.4 155 11/29/2019
12.29.3 699 11/18/2019
12.29.2 163 11/12/2019
12.29.1 159 11/12/2019
12.29.0 158 11/11/2019
Show less