Child pages
  • Customizing Colors, Layout and Logo

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "classpath:org/sipfoundry/sipxconfig/site/spring-beans.dtd">
<beans>
  <!-- Optional definition to override any bean property -->
  <bean id="propsOverrider" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
    <property name="properties">
      <props>
        <!-- value=myResources correlates with the bean myResources defined below -->
        <prop key="skin.messageSourceBeanId">myResources</prop>
      </props>
    </property>
  </bean> 

  <bean id="skinProperties" class="org.sipfoundry.sipxconfig.site.skin.SkinProperties">
    <property name="properties">
      <props>
        <!-- key=X.png correlates to /sipxconfig/skin/X.png (typically referenced in CSS) -->
        <prop key="logo.png">my-logo.png</prop>
        <prop key="login.jpg">my-login.jpg</prop>
        <prop key="custom.css">custom.css</prop>
      <  <prop key="favicon.ico">my-favicon.ico</prop>
      </props>
    </property>
  </bean>  

  <!-- Optional definition to override any string resource -->
  <bean id="myResources" class="org.springframework.context.support.ResourceBundleMessageSource">
    <property name="basename" value="myres"/>
  </bean>

</beans>

Notes:

  1. You should custom.css file  in /etc/sipxpbx/
  2. Custom.css overrides css classes found in sipxecs.css (check this link https://github.com/sipXcom/sipxecs/blob/release-15.12/sipXconfig/web/src/org/sipfoundry/sipxconfig/site/skin/sipxecs.css)

If you define your own resources, simply create a file called myres.properties that contains strings definitions you'd like to alter.
/etc/sipxpbx/myres.properties

...

Create a logo
/etc/sipxpbx/my-logo.png with roughly the same dimensions as the sipxconfig logo

...

Colors   (deprecated with 14.10 – all modifications need to be made in custom.css)

And create corresponding /etc/sipxpbx/my-colors.css

Layout (deprecated with 14.10 – all modifications need to be made in custom.css)

/etc/sipxpbx/my-layout.css based on the default CSS files

Hiding Tabs (deprecated with 14.10 – all modifications need to be made in custom.css)

CSS can be used to do this, for example if you want to hide Conference tab within user portal this should be added in css:

...

You can right click in browser > inspect element and see the path to the tab. You could then edit / see changes live with same console.

Advanced (deprecated with 14.10 – all modifications need to be made in custom.css)

  • You can change the names of any files except

    Code Block
    sipxplugin.beans.xml
  • You can include all files including

    Code Block
    sipxplugin.beans.xml

    into a jar file and drop it into

    Code Block
    /usr/share/sipxpbx/lib
  • This is part of a much larger plugin framework where you can change all sorts of default settings for sipxconfig.