Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Joop Stringer
2
Views
10
Comments
Share StyleSheet among several eSpaces
Question
Anybody can tell us how to share 1 (enterprise) stylesheet among more then one eSpace.
We now have split up our application according the OS architecture and don't want to have to copy all the CSScode.
Joop Stringer
To add something: we want to be able to use WYSIWYG ... so using "External Stylesheet" is no real option...
Luis Soares
i think you can set the main css on a eSpace and share it to others if you include the following line in other eSpace css's:
@import url("/eSpaceName/web.css");
Joop Stringer
Import doesn't allow to use the styles in WYSIWYG ... unfortunately
ovatsus
The best way to do it is to add use the stylesheet of a common block in a producer, and then inserting that block in all pages (you can put it inside the header or the footer which already are already in all the pages)
Best Regards,
Gustavo Guerra
Henrique Capela
Keep in mind that using a block will make it mandatory to re-publish all your consumer espaces when you change the css. This may or may not be an issue for you.
The @import solution will make a changed css available to all consumers the moment you publish the producer.
Regards,
Henrique Capela
José Miranda
Hi!
I'm having some trouble with the @import.
@import url("/eSpaceName/web.css"); does not work!!
Do I need to specify the servers location before the
eSpaceName?
Thanks
Ricardo Araújo
Hi José,
with wich platform version are you working?
cheers
RNA
José Miranda
Hi Ricardo,
I'm using service studio 5.1.0.21.
cheers
Ricardo Araújo
In the espace consumer, did you checked the Use External Style Sheet? if so the import wont work because the internal css file isn't generated.
Can you access to the css generated file https://yourservername/yourespace/web.css and can you check if it is ok?
Cheers
RNA
José Miranda
Hi!
I think I know what I was doing wrong.
Thanks for the help!
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
 Loading...