patrickdemooij9 / SeoToolkit.Umbraco

SeoToolkit is a SEO package for Umbraco 9, 10, 11, 12 & 13. This package features most functionalities needed for your SEO needs like meta fields, sitemap, robots.txt and much more.
MIT License
38 stars 28 forks source link

Register Taghelpers in code instead of ViewImports #40

Open patrickdemooij9 opened 2 years ago

patrickdemooij9 commented 2 years ago

We now have the installation step that you have to include the taghelpers in the _ViewImports.cshtml. Ideally, we don't want this as we rather have it automatically. We can do this with Tag Helper Components: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/th-components?view=aspnetcore-5.0

patrickdemooij9 commented 2 years ago

I am unsure if we can actually do this. I think the link is not mentioning that you still need to include it in the _viewImports as well. Created the logic in https://github.com/patrickdemooij9/SeoToolkit.Umbraco/tree/feature/NoViewImportsTaghelprs, but doesn't work without the link in _viewImports.

Might just have to do some more research, so I'll move it away from v1.1