EPiServer CSS inside own component with MVC

Vote:
 

We're upgrading an MVC dashboard gadget to use the Component attribute since the gadget is depracated. Since it's an MVC gaget we're usign the IFrameComponent attribute (following http://devblog.gosso.se/2017/06/convert-deprecated-gadgets-to-components-in-episerver/). However since it's now an iframe we're missing the default episerver styling because we have to include all CSS links inside the view. Is there a reliable way to include the episerver CSS files without specifying the version numbers inside the url (such as /EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/legacy/ShellCore.css)?

#196334
Aug 27, 2018 11:45
Vote:
 

Hi

You should be able to find some code samples for that in this thread: https://world.episerver.com/forum/legacy-forums/Episerver-7-CMS/Thread-Container/2013/11/Extending-the-global-menu---generating-the-required-scripts-for-EPiServer-look-and-feel/

Regards

Per Gunsarfs

#196339
Aug 27, 2018 16:10
Vote:
 

Thanks, that works like a charm!

#196340
Aug 27, 2018 16:25
Vote:
 

Great, glad to hear I could help!

#196341
Aug 27, 2018 16:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.