|
Hello, I'm new to the OrchardCore. I couldn't find any example or tutorial. I realized that through ResourceManager you can add a script as text, but if I want to add it as a file, where should I place it correctly and specify the path to it in ResourceManager. Thanks. |
Replies: 3 comments 4 replies
|
I already did something similar in OrchardCoreContrib.Themes, have a look to https://github.com/OrchardCoreContrib/OrchardCoreContrib.Themes/blob/dev/src/OrchardCoreContrib.Themes.Resume/ResourceManagementOptionsConfiguration.cs |
|
If I understand correctly, you want to register a script and be able to reference the script file in your templates? Register it in your module start up Reference it in your templates Apologies if I misunderstood |
|
Seems the right answer is what I refer to in my sample :) |
If I understand correctly, you want to register a script and be able to reference the script file in your templates?
Create a class which inherits from
IConfigureOptions<ResourceManagementOptions>