mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
31 lines
932 B
C#
31 lines
932 B
C#
|
|
// Finds the correct link adress to any Page, Letter, or Comment, and sets Links as active if neccessary
|
|
using Microsoft.AspNetCore.Razor.TagHelpers;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AuthoringTagHelpers.TagHelpers
|
|
{
|
|
public class MenuLinkHelper : TagHelper
|
|
{
|
|
public override void Process(TagHelperContext context, TagHelperOutput output)
|
|
{
|
|
output.TagName = "a"; // Replaces <email> with <a> tag
|
|
}
|
|
}
|
|
|
|
public class LetterLinkHelper : TagHelper
|
|
{
|
|
public override void Process(TagHelperContext context, TagHelperOutput output)
|
|
{
|
|
output.TagName = "a"; // Replaces <email> with <a> tag
|
|
}
|
|
}
|
|
|
|
public class CommentLinkHelper : TagHelper
|
|
{
|
|
public override void Process(TagHelperContext context, TagHelperOutput output)
|
|
{
|
|
output.TagName = "a"; // Replaces <email> with <a> tag
|
|
}
|
|
}
|
|
} |