How can I read stylesheets from mendix filedocuments into my html? I want the users to upload css files and these are then inserted into the dom with the <link...>
stuffs
I have an entity generalized from a file document intended for styling purposes. For testing purposes /file?guid=15199648742375425
downloads (link generated in widget for test) but mxui.dom.addCss('/file?guid=15199648742375425');
(url generated in widget in same way) does not add the CSS.
Also, manually inserting <link rel="stylesheet" href="http://localhost:8080/file?guid=15199648742375425">
does not work,
If i take the file stored in /file?guid=15199648742375425
and put it into an actual file in deployment/web (e.g. deployment/web/css/a.css
), then mxui.dom.addCss('css/a.css');
does work, and obviously <link rel="stylesheet" href="http://localhost:8080/css/a.css"> works as well.