Skip to content

Client side resources #16383

Answered by douwinga
craftyweb asked this question in Q&A
Jun 28, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You could have a look at how the Flows module does it. Specifically in the Display.cshtml
https://github.com/OrchardCMS/OrchardCore/blob/main/src/OrchardCore.Modules/OrchardCore.Flows/Views/Admin/Display.cshtml. It returns the content (html) and scripts separate which can then be used by javascript to place the html and scripts where you want them.

This is where it is evaluating the scripts https://github.com/OrchardCMS/OrchardCore/blob/main/src/OrchardCore.Modules/OrchardCore.Flows/Assets/js/flows.edit.js#L36-L39

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@craftyweb
Comment options

Answer selected by craftyweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants