Files
hamann-ausgabe-core/HaWeb/Helpers/LinkHelper.cs
2022-05-12 18:31:32 +02:00

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
}
}
}