More Menu, Added Basic Routing

This commit is contained in:
schnulller
2022-05-12 18:31:32 +02:00
parent 702fad0dd7
commit c0ff6cea2d
20 changed files with 582 additions and 191 deletions

View File

@@ -0,0 +1,31 @@
// 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
}
}
}