You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi.
I use Orchardcore without cms "OrchardCore.Application.Mvc.Targets" to my projects and add my module to it.
I know to add builder.Services.AddOrchardCore().ConfigureServices(s => { s.AddResourceManagement(); s.AddTagHelpers<LinkTagHelper>(); s.AddTagHelpers<MetaTagHelper>(); s.AddTagHelpers<ResourcesTagHelper>(); s.AddTagHelpers<ScriptTagHelper>(); s.AddTagHelpers<StyleTagHelper>(); });
in my program and then implement ResourceManifest.cs for my module too.
after that in _ViewImports.cshtml add @addTagHelper *, OrchardCore.DisplayManagement @addTagHelper *, OrchardCore.ResourceManagement
and in _ViewStart.cshtml use tag helpers like this:
hi. I use Orchardcore without cms "OrchardCore.Application.Mvc.Targets" to my projects and add my module to it. I know to add builder.Services.AddOrchardCore().ConfigureServices(s => { s.AddResourceManagement(); s.AddTagHelpers<LinkTagHelper>(); s.AddTagHelpers<MetaTagHelper>(); s.AddTagHelpers<ResourcesTagHelper>(); s.AddTagHelpers<ScriptTagHelper>(); s.AddTagHelpers<StyleTagHelper>(); }); in my program and then implement ResourceManifest.cs for my module too. after that in _ViewImports.cshtml add @addTagHelper *, OrchardCore.DisplayManagement @addTagHelper *, OrchardCore.ResourceManagement
and in _ViewStart.cshtml use tag helpers like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi.
I use Orchardcore without cms "OrchardCore.Application.Mvc.Targets" to my projects and add my module to it.
I know to add
builder.Services.AddOrchardCore().ConfigureServices(s => { s.AddResourceManagement(); s.AddTagHelpers<LinkTagHelper>(); s.AddTagHelpers<MetaTagHelper>(); s.AddTagHelpers<ResourcesTagHelper>(); s.AddTagHelpers<ScriptTagHelper>(); s.AddTagHelpers<StyleTagHelper>(); });
in my program and then implement
ResourceManifest.cs
for my module too.after that in
_ViewImports.cshtml
add@addTagHelper *, OrchardCore.DisplayManagement @addTagHelper *, OrchardCore.ResourceManagement
and in
_ViewStart.cshtml
use tag helpers like this:all scripts were added successfully into my module but nothing for styles????
what should I do to import my module styles to tag helper?
Beta Was this translation helpful? Give feedback.
All reactions