Canvas Technology platform supports SASS from 19.1 version. While SASS compiles successfully on Windows servers, in some non-Windows systems (e.g. HP Unix or iOS) SASS compilation fails during deploying the application. In these cases, you must copy the CSS files from the correctly deployed development or testing environment (Windows) and store those in the failed environment (non-Windows). You must then remove the SASS references in the CSSConfig.xml file and use plain CSS instead to successfully deploy the application on non-Windows environments. Perform the following steps: - Copy the CSS files from the correctly deployed Windows environment.
- Store the CSS files to the specific location on the non-Windows environment.
Replace the SASS file name to CSS in the CSSConfig.xml of CTRIAFramework in the application WAR. Info |
---|
For example, in Tomcat server, the CSSConfig.xml is located in the following location: - ..\apache-tomcat-7.0.67\webapps\ctmodelhouse\CTRIAFramework\UIArena\theme\system\cssconfig.xml (here, ctmodelhouse is the application)
|
Code Block |
---|
| <?xml version="1.0" encoding="UTF-8"?>
<themeConfig>
<!-- * * Copyright 2014. Intellect Design Arena Limited. All rights reserved. * -->
<theme id="structure" name="Structure Theme" folderRef="">
<framework name="jqtbs" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/">
<direction mode="ltr" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/" minifiedPattern="">
<css name="structure-jqtbs.css" /> <!-- rename all .scss files to .css -->
</direction>
</framework>
</theme>
</themeConfig> |
If suppose any custom themes were created using the Theme Designer in Canvas Studio, remove its entry from the THEME_MASTER table. Then, copy the custom theme's CSS files from the correctly deployed Windows environment and store in the non-Windows environment. Then specify the path to the custom theme's CSS file in the application's CSSConfig.xml in the application WAR. Info |
---|
For example, in Tomcat server, the application's CSSConfig.xml is located in the following location: - ..\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\cssconfig.xml (here, ctmodelhouse is the application)
|
Code Block |
---|
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<themeConfig>
<theme id="CustomRed" name="Custom Red Theme" folderRef=""> <!-- ID and name of the custom theme -->
<framework name="jqtbs" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/">
<direction mode="ltr" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/" minifiedPattern="">
<css name="custom-red-jqtbs.css" /> <!-- CSS file of custom theme -->
</direction>
<direction mode="rtl" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/" minifiedPattern="">
<css name="custom-red-jqtbs.css" /> <!-- CSS file of custom theme -->
<css name="custom-red-jqtbs-rtl.css" /> <!-- CSS file of custom theme -->
</direction>
</frame
</themeConfig> |
|