-
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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Seems the right answer is what I refer to in my sample :) |
Beta Was this translation helpful? Give feedback.
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>