RM.DynamicRoutingWildcards.Kentico.MVC 12.29.1

Extends DynamicRouting.Kentico.MVC to support wildcards in urls which map to properties within Controller actions

Install-Package RM.DynamicRoutingWildcards.Kentico.MVC -Version 12.29.1
dotnet add package RM.DynamicRoutingWildcards.Kentico.MVC --version 12.29.1
<PackageReference Include="RM.DynamicRoutingWildcards.Kentico.MVC" Version="12.29.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RM.DynamicRoutingWildcards.Kentico.MVC --version 12.29.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RM.DynamicRoutingWildcards.Kentico.MVC, 12.29.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Dynamic Routing Wildcards

Dynamic Routing Wildcards for Kentico is an extension of a KenticoDevTrev's Dynamic Routing Package. In KenticoDevTrev's package you are able to link Views, Controllers and Pages to customisable routes in Kentico MVC. With this package you can now introduce parameters to your Urls. For example if I have a url /blog but I want to filter my blog listing page to only show certain categories, I can add the url /blog/{category}. This will route to the original page and add parameters to the route data to parse into your controller actions.

Installation

Installing on the Admin

  1. Install the NuGet Package DynamicRouting.Kentico.Wildcards on your Kentico Admin.
  2. Go to modules and ensure that DynamicRouting.Kentico.Wildcards exist
  3. That's it for the admin 🎉

installing on the Presentation Layer

  1. Install the same NuGet Package DynamicRouting.Kentico.Wildcards on your main MVC site.
  2. In your Global.asax.cs add the following using statement

using DynamicRouting.Kentico.Wildcards.Helpers;

  1. In your Application_Start() method add the following code

WildcardRoutingInitialiser.AddWildcards();

All Done! 🎉

You should now be able to just add url wildcards in your Kentico admin.
NOTE: Remember to always start a new wildcard with /{urlslug}/

Dynamic Routing Wildcards

Dynamic Routing Wildcards for Kentico is an extension of a KenticoDevTrev's Dynamic Routing Package. In KenticoDevTrev's package you are able to link Views, Controllers and Pages to customisable routes in Kentico MVC. With this package you can now introduce parameters to your Urls. For example if I have a url /blog but I want to filter my blog listing page to only show certain categories, I can add the url /blog/{category}. This will route to the original page and add parameters to the route data to parse into your controller actions.

Installation

Installing on the Admin

  1. Install the NuGet Package DynamicRouting.Kentico.Wildcards on your Kentico Admin.
  2. Go to modules and ensure that DynamicRouting.Kentico.Wildcards exist
  3. That's it for the admin 🎉

installing on the Presentation Layer

  1. Install the same NuGet Package DynamicRouting.Kentico.Wildcards on your main MVC site.
  2. In your Global.asax.cs add the following using statement

using DynamicRouting.Kentico.Wildcards.Helpers;

  1. In your Application_Start() method add the following code

WildcardRoutingInitialiser.AddWildcards();

All Done! 🎉

You should now be able to just add url wildcards in your Kentico admin.
NOTE: Remember to always start a new wildcard with /{urlslug}/

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
12.29.1 148 7/14/2020
12.29.0 106 7/14/2020