Get css file from a projects resources folder into a widget
Since it's in a folder higher in the structure (model) rather than in "web" I would assume you need to navigate up.
Have you tried "../model/resources/custom.css"?
Hope this helps
Try exposing a rest service with a string parameter representing a path relative to com.mendix.core.Core.getConfiguration().getTempPath(), use FileHandling.FileDocumentFromFile, store in a System.FileDocument, and expose on a rest service, then use that url
𝕺𝖈𝖐𝖊𝖗𝖙 𝖛𝖆𝖓 𝕾𝖈𝖍𝖆𝖑𝖐𝖜𝖞𝖐
we had a similair situation where we need to be able to address some custom css.
Does the css need to be in resources folder?
and have you tried this widget?
Not sure what you are trying to do, but if your css is predefined, why not bake it straight into the sass?