87
Views
12
Comments
import external css by import url not working on servicestudio
Question

Hi there, 

the @import url(directory) not working on ServiceStudio 10 ?
Inside ServiceStudio does not render

mvp_badge
MVP
Rank: #2

What "directory" do you mean? A directory is not a URL. You can't specify local directories with url(), it ust be an actual URL.

Rank: #23785

Kilian Hekhuis wrote:

What "directory" do you mean? A directory is not a URL. You can't specify local directories with url(), it ust be an actual URL.

yes, you assumed that but that's not what i wanted to talk about, I know how to put URL there...
@import url(/module/ThemeDefault.css)

This is not render in ServiceStudio, some problem at 10 ?


Champion
Rank: #84

You are using a location that is already part of the current application. Service Studio doesn't support that as far as I know and you will need to add that css content to the regular OutSystems css file (by using the css button in the menu bar). 


edit: Now that I think about it more I don't think this will ever work. OutSystems doesn't render a webpage, it presents a wysiwyg look of the page you develop based on the data already available. Retrieving external data isn't part of that so I don't think this will ever work, even on 11.

Rank: #23785

Vincent Koning wrote:

You are using a location that is already part of the current application. Service Studio doesn't support that as far as I know and you will need to add that css content to the regular OutSystems css file (by using the css button in the menu bar). 


edit: Now that I think about it more I don't think this will ever work. OutSystems doesn't render a webpage, it presents a wysiwyg look of the page you develop based on the data already available. Retrieving external data isn't part of that so I don't think this will ever work, even on 11.


if we need internet to login and access our 'local' environment why can't it read a .css page?

mvp_badge
MVP
Rank: #2

As far as I know, Service Studio is loading those resources locally, so it can't find them.

Rank: #23785

Kilian Hekhuis wrote:

As far as I know, Service Studio is loading those resources locally, so it can't find them.


if it were really local we wouldn't need to login in ServiceStudio.


Champion
Rank: #84

Rodrigo Luan wrote:

Kilian Hekhuis wrote:

As far as I know, Service Studio is loading those resources locally, so it can't find them.


if it were really local we wouldn't need to login in ServiceStudio.


Kilian meant resources on you local machine.

And why the remote CSS isn't loaded? I can't say for sure since I don't work for OutSystems but the preview pane isn't a full blown browser. Why would you expect it to function the same as a regular browser does. The same goes for JavaScript. This isn't run in the preview window as well. 

If you want to change this behavior then post an idea


mvp_badge
MVP
Rank: #14

Why not simply base your theme on your basetheme?



Rank: #23785

J.  escreveu:

Por que não simplesmente basear seu tema no seu basetheme?



so I don't need to republish to get a new version of my css


Rank: #939

Hi All, 

May you advise why the @import url("\{module}\filename.css"); is not working theme style sheet?


It is workable at the web screen style sheet.

Rank: #166

Hi Jessica,

As Kilian said in the previous post, seems like when using it in service studio it will try to find the file in your local machine.

Once you published and view in your browser it may work.

If you are viewing in the web preview in service studio, I don't know if it should work.

Regards,

RR :)

Rank: #23785


Ffriend, it worked before, now it stopped working, we wanted to understand why it stopped.