You must have an ABP Team or a higher license to use CMS Kit Pro module's features.
CMS Kit provides a URL forwarding system to create URLs that redirect to other pages or external websites.
By default, CMS Kit features are disabled. Therefore, you need to enable the features you want, before starting to use it. You can use the Global Feature system to enable/disable CMS Kit features on development time. Alternatively, you can use the ABP's Feature System to disable a CMS Kit feature on runtime.
In addition to enabling Url Shorting global feature, you need to add UrlShortingMiddleware
to your final application.
using Volo.CmsKit.Pro.Public.Web.Middlewares;
.
.
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
app.UseMiddleware<UrlShortingMiddleware>();
.
.
URL Forwarding: Opens the URL Forwarding management page.
You can create new forwardings or update/delete existing ones, in the admin side of your solution.
ShortenedUrlCacheOptions
is used to configure the cache settings for the URL forwarding system. Example:
Configure<ShortenedUrlCacheOptions>(options =>
{
options.CacheAllOnStartup = true; // Cache all shortened URLs on startup
});
This module follows the Entity Best Practices & Conventions guide.
ShortenedUrl
(aggregate root): Represents a URL mapping in the system.
This module follows the Repository Best Practices & Conventions guide.
Following custom repositories are defined for this feature:
IShortenedUrlRepository
UrlShortingAdminAppService
(implementsIUrlShortingAdminAppService
): Implements the use cases of URL Forwarding management.UrlShortingPublicAppService
(implementsIUrlShortingPublicAppService
): Implements the use cases of URL Forwarding for public websites.
All tables/collections use the Cms
prefix by default. Set static properties on the CmsKitDbProperties
class if you need to change the table prefix or set a schema name (if supported by your database provider).
This module uses CmsKit
for the connection string name. If you don't define a connection string with this name, it fallbacks to the Default
connection string.
See the connection strings documentation for details.
- CmsShortenedUrls
- CmsShortenedUrls