- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2013 09:01 AM
I have read the docs here http://doc.nuxeo.com/display/KB/Adding+your+own+CSS for adding a custom css but I can't quite follow it. I have installed nuxeo 5.6 tomcat for DM. According to the docs
For your project you probably have a custom nuxeo-platform-webapp (for every pictures, icons, custom xhtml...).
but I don't have any such folder to copy the css. I only have this
nuxeo/nuxeo-cap-5.6-tomcat/nxserver/nuxeo.war/css/
instead of this(mentioned in the docs.)
nuxeo-dm/nuxeo-platform-webapp/src/main/resources/nuxeo.war/css/
Please help me understand clearly regarding adding my own css.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2013 07:34 AM
Hi,
In the documentation we're talking about the source files. You're talking about the files in the server.
Pictures, css, pages from nxserver/nuxeo.war are coming from the .jar files of nxserver/bundles, based on the sources files. If you put your own CSS directly in the server, the file will be deleted during the next restart of the server. That is why you need to have your own bundle: generate your own .jar file and not lose your changes.
Also in term of maintainability of every project (not only for Nuxeo), don't blend your changes in original files: if you have a problem once, it will be really hard to understand why it's happening and where is the mistake.
So you have several solution:
- create your own bundle, then build a .jar and deploy it in the server.
- create a studio project and add your css in the Branding > CSS tab. Then, download your .jar and put it in the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2013 07:34 AM
Hi,
In the documentation we're talking about the source files. You're talking about the files in the server.
Pictures, css, pages from nxserver/nuxeo.war are coming from the .jar files of nxserver/bundles, based on the sources files. If you put your own CSS directly in the server, the file will be deleted during the next restart of the server. That is why you need to have your own bundle: generate your own .jar file and not lose your changes.
Also in term of maintainability of every project (not only for Nuxeo), don't blend your changes in original files: if you have a problem once, it will be really hard to understand why it's happening and where is the mistake.
So you have several solution:
- create your own bundle, then build a .jar and deploy it in the server.
- create a studio project and add your css in the Branding > CSS tab. Then, download your .jar and put it in the server.
