KB Article #178761

How to brand B2Bi UI

Problem

-- How to brand B2Bi UI?

Resolution

Login screen:

1. Back up the file ".../axway/b2bi/Interchange/webapps/ui/themes/default/00000000-000000/core/stylesheets/logicsheet.xsl" to "logicsheet.xsl.original"

2. Open "logicsheet.xsl" and find the section:

<xsl:template match="uicore:LoginProductLogo">

<style type="text/css">

#login-title:after {

<xsp:logic>

LicenseManager licenseMgr = LicenseManager.getInstance();

<!-- String title = licenseMgr.getDisplayableProductFlavor(); -->

String title = "B2Bi TEST ENVIRONMENT";

<xsp:content>content: '<xsp:expr>title</xsp:expr>';</xsp:content>

</xsp:logic>

font-size: 1.85rem;

font-weight: normal;

}

</style>

</xsl:template>

3. Comment the line: "String title = licenseMgr.getDisplayableProductFlavor();" like in the example above

4. Add a new line "String title = "B2Bi TEST";" like in the example above, this is where you set your title

5. Stop B2Bi

6. Rename the file .../axway/b2bi/Interchange/webapps/ui/WEB-INF/work/org/apache/cocoon/www/themes/default_/_00000000_000000/core/pages/UserPass_xsp.class

to "UserPass_xsp.class.original". This file will be automatically regenerated when B2Bi is started again.

7. Rename the file .../axway/b2bi/Interchange/webapps/ui/WEB-INF/work/org/apache/cocoon/www/themes/default_/_00000000_000000/core/pages/UserPass_xsp.java

to "UserPass_xsp.java.original" This file will be automatically regenerated when B2Bi is started again.

8. Start B2Bi

Horizontal top-bar:

1. Back up the file .../axway/b2bi/Interchange/webapps/ui/themes/default/00000000-000000/core/stylesheets/page2html-common.xsl as "page2html-common.xsl.original"

2. Open page2html-common.xsl and find the section:

<xsl:variable name="version"><xsl:value-of select="$productFlavor"/></xsl:variable>

<xsl:choose>

<xsl:when test="$version='b2bi'">

B2Bi

</xsl:when>

<xsl:when test="$version='b2biCSOS'">

CSOS B2Bi

</xsl:when>

<xsl:when test="$version='activator'">

Activator

</xsl:when>

<xsl:when test="$version='activatorCSOS'">

CSOS Activator

</xsl:when>

<xsl:when test="$version='interchangeCSOS'">

CSOS Interchange

</xsl:when>

<xsl:otherwise>

Interchange

</xsl:otherwise>

</xsl:choose>

3. Edit <xsl:when test="$version='b2bi'">B2Bi</xsl:when> This is where you set your title (ex: <xsl:when test="$version='b2bi'">B2Bi TEST ENVIRONMENT</xsl:when>)

4. Empty browser cache and reload the main page

Note:

Modifications above will be lost when applying a patch/Service Pack and will need to be applied again.