IBM Sterling File Gateway: Customizando a interface do MyFilegateway

From Wiki
Revision as of 18:42, 17 August 2023 by Ebasso (talk | contribs)

Procedure

1) Go to directory

   cd <SB2B Home Directory>/container/Applications/myfilegateway/isomorphic/skins

2) Create a copy of FileGateway_v001 directory

   cp -Rv FileGateway_v001 FileGateway_v100

3) Go to directory

   cd <SB2B Home Directory>/container/Applications/myfilegateway/isomorphic/skins/FileGateway_v100/

4) Edit file and change directory value on line 54

   isc.Page.setSkinDir("[ISOMORPHIC]/skins/FileGateway_v100/")

5) Go to directory

   cd <SB2B Home Directory>/container/Applications/myfilegateway/isomorphic/skins/FileGateway_v100/brandingcontent

6) Change files

  • header.txt
  • footer.txt

7) Overwrite files

cp header.txt myFgHeader.txt
cp footer.txt loginFooter.txt

8) copy the content to file customer_overrides.properties

##################################
# Branding UI MyFilegateway
#################################
filegateway_ui.myfgWindowTitle=My Company File Transfer
filegateway_ui.myfgSkinName=FileGateway_v100


9) Apply Changes

<SB2B Home Directory>/bin/hardstop.sh
<SB2B Home Directory>/bin/deployer.sh
<SB2B Home Directory>/bin/run.sh


Errors and Solutions

After upgrading to 6.1.2.x, rebranding MyFileGateway fails with 404

This error happens when call load_skin.js

GET http://<server>:5001/myfilegateway/isomorphic/skins/FileGateway_v100/load_skin.js?isc_version=v12.1p_2021......js  net::ERR_ABORTED 404 (Not Found)

To solve this problem

1) edit file <install>/container/Applications/myfilegateway/WEB-INF/classes/security_filter.properties

2) On line 21, after the text

loginjs7_1=/${WEBAPP_CONTEXT_NAME}/isomorphic/skins/${WEBAPP_CONTEXT_NAME}/load_skin.js

add the following:

loginjs7_2=/${WEBAPP_CONTEXT_NAME}/isomorphic/skins/${filegateway_ui.myfgSkinName}/load_skin.js

3) Run deployer.sh,

4) setupfiles.sh

5) restart server


Ver também