-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
@DrtyByt check out https://github.com/ADefWebserver/Oqtane.SyncfusionHelpDesk from @ADefWebserver (Michael Washington) |
Beta Was this translation helpful? Give feedback.
-
@DrtyByt this issue is resolved in #2045. You can also resolve it in the current version by registering your resources in your module using the Declaration = ResourceDeclaration.Global attribute:
That being said, I do not believe that the IHostResources approach is the recommended way to register static resources - it was more of a temporary solution while a more robust solution was being developed for Oqtane. The problem with IHostResources is that it registers the assets globally ie. it includes the stylesheet and JavaScript references on every page for every site within your multi-tenant installation - which is generally not a good idea. Declaring the resources locally in a module is much better as it means they are lazy loaded as needed. An example of a local declaration is in your Index.razor file:
|
Beta Was this translation helpful? Give feedback.
-
@DrtyByt are you still using syncfusion with oqtane? I've also tried to get the example working and cannot, two problems faced that seem insurmountable. I could do with some help and can pay if necessary. |
Beta Was this translation helpful? Give feedback.
-
@markagama the IHostResources interface was deprecated in Version 4.0. Please see this blog post: https://www.oqtane.org/blog/!/61/css-js-resources |
Beta Was this translation helpful? Give feedback.
-
This still works perfectly in version 5.2.1. :-) |
Beta Was this translation helpful? Give feedback.
-
I updated https://github.com/ADefWebserver/Oqtane.SyncfusionHelpDesk |
Beta Was this translation helpful? Give feedback.
@DrtyByt this issue is resolved in #2045. You can also resolve it in the current version by registering your resources in your module using the Declaration = ResourceDeclaration.Global attribute:
That being said, I do not believe that the IHostResources approach is the recommended way to register static resources - it was more of a temporary s…