Tag Helpers

Razor tag helpers are a powerful new feature of ASP.NET Core. Redakt CMS comes with a number of tag helpers out of the box that can aid you in efficient implementation of page layouts.

Redakt tag helpers can introduce new tag names, extend standard html tags, or both. To make it more obvious that a tag or attribute is part of Redakt logic, Redakt custom tag names and attribute names on standard html tags will always start with re-. Only attribute names on custom tags do not start with re-, because it is already clear from the tag name that this is a Redakt tag.

Setup

To be able to use the Redakt tag helpers, you have to add a reference to your _ViewImports.cshtml view. Add the following line to the bottom of the file, below the default ASP.NET Core tag helper reference:

@addTagHelper *, Redakt.Web

List of tag helpers

This is a list of built-in tag helpers that can be used with Redakt layouts. Click on the links for implementation details.