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

backoffice disable using fonts.googleapis

Former Member
0 Kudos
294

Hi,

I have a problem with the zkex-8.0.5.jar that's used by backoffice (we are using hybris 6.6). When you make a page request, this jar adds an external link to every backoffice-page:

 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans"/>

The communication between the browser and the firewall/loadbalancer/whatever is over https, from there to the hybrisserver its over http. The zkex-8.0.5.jar now includes the external link with http and not https (thats my problem a http-link in a https-site). The zkex-8.0.5.jar has a property

 DONT_USE_GOOGLE_FONT = "org.zkoss.theme.atlantic.useGoogleFont.disabled"

Is there a way to set this property?

BR

Accepted Solutions (1)

Accepted Solutions (1)

former_member638520
Contributor
0 Kudos

Hi,

According to https://www.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/org.zkoss.theme.... you can disable this property in zk.xml. Unfortunately this file is located in cockpitframework.jar (hybris\bin\ext-backoffice\backoffice\web\webroot\WEB-INF\lib\cockpitframerk.jar/metainfo/zk/zk.xml). So you can modify this xml in .jar file :

     <library-property>
         <name>org.zkoss.theme.atlantic.useGoogleFont.disabled</name>
         <value>true</value>
     </library-property>

Moreover, I see that the newest version of backoffice has this property set to true by default.

Regards,

Lukasz

Former Member
0 Kudos

true in version cockpitframework-6.7 its fixed

Answers (0)