mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-31 10:15:33 +00:00 
			
		
		
		
	More Menu, Added Basic Routing
This commit is contained in:
		
							
								
								
									
										31
									
								
								HaWeb/Helpers/LinkHelper.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								HaWeb/Helpers/LinkHelper.cs
									
									
									
									
									
										Normal 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 | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 schnulller
					schnulller