on 2019 Mar 25 8:00 PM
We have two custom backoffice extensions in our project. They seem to work fine. But in one of them, I am not able to define CSS files. No matter what I do, they are ignored. Can anyone please help me with that?
Here are the full details:
extension 1 - backoffice-A depends on backoffice and has CSS files at both of the following locations (but none of them are picked up):
backoffice-A/resources/cockpitng/cng/css/
backoffice-A/backoffice/resources/scss/
extension 2 - backoffice-B depends on backoffice-A. The backoffice-B has the following project.properties: -backoffice.cockpitng.mainpage.css=./cng/css/backoffiveB.css - backoffice.cockpitng.loginpage.css=./cng/css/loginpage_backofficeb.css
The backoffice-B has the SCSS/ CSS files defined at the following locations:
backoffice-B/resources/cockpitng/cng/css/
backoffice-B/backoffice/resources/scss/
All the files are picked up. I am clueless why the backoffice-A files are not working. Please help.
Request clarification before answering.
Found the issue. Our backoffice-A/buildcallbacks.xml was missing the following:
<macrodef name="backoffice-A_before_build">
<sequential>
<register_sass_extension extensionname="backoffice-A"/>
<register_sass_extension extensionname="backoffice-A" resources="resources" destination=""/>
</sequential>
</macrodef>
After adding it, our CSS start getting picked up by the backoffice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can have but finally on the UI you cannot see any difference. We have multiple backoffice extensions as shown below.
<extension name='solrfacetsearchbackoffice' />
<extension name='cmsbackoffice' />
all these extensions will be combined together after we do the clean build. it will get converted/updted as a single backoffice and display to the user.
I hope you understand what I mean.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.