cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we have multiple custom backoffice extensions in our project?

Former Member
0 Kudos
363

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

VinayKumarS
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks for replying. We figured out the issue.