Modify default TM1web layout
-
- Posts: 141
- Joined: Wed Nov 14, 2012 10:37 am
- OLAP Product: TM1
- Version: 2.0
- Excel Version: Office 365
Modify default TM1web layout
Hi guys,
Is it possible to modify the existing layout of TM1web such that you can hide certain banners or buttons i.e. to change the default layout of tm1web as it's rendered in a browser. For example. the 'banner' that contains "IBM Cognos TM1Web on the left and on the RHS is .... Help | Logout
Can this banner be hidden or modified in any way?
Many thanks
Is it possible to modify the existing layout of TM1web such that you can hide certain banners or buttons i.e. to change the default layout of tm1web as it's rendered in a browser. For example. the 'banner' that contains "IBM Cognos TM1Web on the left and on the RHS is .... Help | Logout
Can this banner be hidden or modified in any way?
Many thanks
-
- Community Contributor
- Posts: 265
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: Modify default TM1web layout
Short of direct editing the source files in the install location that would then get overwritten any time you upgrade, I'm not aware of how to do this. I guess you could create a custom browser extension that dynamically updates the html of the page for all users. You could even build your own custom webpage and leverage the TM1Web api for rendering cubeviews, websheets.
Are you trying to hide it due to screen area issues or are you trying to insert custom hyperlinks?
Are you trying to hide it due to screen area issues or are you trying to insert custom hyperlinks?
-
- Posts: 9
- Joined: Thu Feb 20, 2014 8:42 am
- OLAP Product: TM1
- Version: PA 2.0.9
- Excel Version: 2016
- Location: Russia, Saint-Petersburg
Re: Modify default TM1web layout
Hi,
PRODUCT_NAME:"IBM® Planning Analytics 2.0.9",
ABOUT_STR:"About",
HELP_TOOLTIP_STR:"Help",
LOG_OUT_STR:"Log Out",
On windows installation for PAL 2.0.9 you can find this "magic words" in the file
<installation path>\webapps\tm1web\scripts\tm1web\common\nls\...\CommonMessages.js
(... means folder for specified language: "cs", "da" , "de" etc)
Open file with admin rights, set words value to blank or whatever you want, save file, refresh web page (no need restart any PAL services).
PRODUCT_NAME:"IBM® Planning Analytics 2.0.9",
ABOUT_STR:"About",
HELP_TOOLTIP_STR:"Help",
LOG_OUT_STR:"Log Out",
On windows installation for PAL 2.0.9 you can find this "magic words" in the file
<installation path>\webapps\tm1web\scripts\tm1web\common\nls\...\CommonMessages.js
(... means folder for specified language: "cs", "da" , "de" etc)
Open file with admin rights, set words value to blank or whatever you want, save file, refresh web page (no need restart any PAL services).
Last edited by konstantin-spb on Mon Jun 27, 2022 1:21 pm, edited 1 time in total.
-
- Posts: 129
- Joined: Thu Oct 23, 2014 10:15 pm
- OLAP Product: tm1, cognos bi
- Version: 10.2
- Excel Version: 2010
Re: Modify default TM1web layout
I also have a requirement to add a new Icon which will launch another site. The requirement is to add the Icon on the Top Banner, just after Log Out
Not sure which files need to be updated for 2.0.9.4
Thanks
Not sure which files need to be updated for 2.0.9.4
Thanks
-
- Posts: 9
- Joined: Thu Feb 20, 2014 8:42 am
- OLAP Product: TM1
- Version: PA 2.0.9
- Excel Version: 2016
- Location: Russia, Saint-Petersburg
Re: Modify default TM1web layout
Sorry,konstantin-spb wrote: ↑Wed Jun 22, 2022 9:33 pm Hi,
PRODUCT_NAME:"IBM® Planning Analytics 2.0.9",
ABOUT_STR:"About",
HELP_TOOLTIP_STR:"Help",
LOG_OUT_STR:"Log Out",
On windows installation for PAL 2.0.9 you can find this "magic words" in the file
<installation path>\webapps\tm1web\scripts\tm1web\common\nls\...\CommonMessages.js
(... means folder for specified language: "cs", "da" , "de" etc)
Open file with admin rights, set words value to blank or whatever you want, save file, refresh web page (no need restart any PAL services).
If your default language is English/US (default for TM1), then NLS (National Language Support) does not apply.
Should to be corrected immediately in the files
<installation path>\webapps\tm1web\scripts\tm1web\standalone\
TM1WebApp.js or TM1WebAppCam.js (if you use CAM)
-
- Posts: 9
- Joined: Thu Feb 20, 2014 8:42 am
- OLAP Product: TM1
- Version: PA 2.0.9
- Excel Version: 2016
- Location: Russia, Saint-Petersburg
Re: Modify default TM1web layout
Hi,
PAL 2.0.9.4 use PASS (Planning Analytics Spreadsheet Services). Unfortunately I don't have this version.
I don't know the difference between the classic TM1 Web and PASS.
But you can use developer tools in Chrome, find the class of the element, then find the file where that class is defined, and write/rewrite what you need
- vovanenok
- Posts: 88
- Joined: Mon Jun 23, 2014 4:54 pm
- OLAP Product: TM1
- Version: 2.0.9
- Excel Version: Office 365
- Location: Toronto, Canada
- Contact:
Re: Modify default TM1web layout
It should be possible to change the default styles (including hiding some elements) by modifying the CSS files. I remember I had a requirement to enable separate URLs for different TM1 models, so I modified some TM1Web JS files used on the login page. The custom javascript was reading the URL parameters of the login page, then it was selecting the corresponding model and submitting the login form, so the users would be logging into the preselected TM1 server based on the URL parameter.
I recommend creating an installation and customization guide so you can document it all and re-apply after upgrading TM1.
As mentioned previously you should understand there is a chance such customization may stop working with the next TM1 version upgrade
I recommend creating an installation and customization guide so you can document it all and re-apply after upgrading TM1.
As mentioned previously you should understand there is a chance such customization may stop working with the next TM1 version upgrade
-
- Posts: 141
- Joined: Wed Nov 14, 2012 10:37 am
- OLAP Product: TM1
- Version: 2.0
- Excel Version: Office 365
Re: Modify default TM1web layout
I'm entertaining the idea of customising the GUI such that it is no longer IBM branded.ascheevel wrote: ↑Wed Jun 22, 2022 1:14 pm Short of direct editing the source files in the install location that would then get overwritten any time you upgrade, I'm not aware of how to do this. I guess you could create a custom browser extension that dynamically updates the html of the page for all users. You could even build your own custom webpage and leverage the TM1Web api for rendering cubeviews, websheets.
Are you trying to hide it due to screen area issues or are you trying to insert custom hyperlinks?
-
- Posts: 141
- Joined: Wed Nov 14, 2012 10:37 am
- OLAP Product: TM1
- Version: 2.0
- Excel Version: Office 365
Re: Modify default TM1web layout
I'll try this out, thanks very much.konstantin-spb wrote: ↑Mon Jun 27, 2022 1:22 pmSorry,konstantin-spb wrote: ↑Wed Jun 22, 2022 9:33 pm Hi,
PRODUCT_NAME:"IBM® Planning Analytics 2.0.9",
ABOUT_STR:"About",
HELP_TOOLTIP_STR:"Help",
LOG_OUT_STR:"Log Out",
On windows installation for PAL 2.0.9 you can find this "magic words" in the file
<installation path>\webapps\tm1web\scripts\tm1web\common\nls\...\CommonMessages.js
(... means folder for specified language: "cs", "da" , "de" etc)
Open file with admin rights, set words value to blank or whatever you want, save file, refresh web page (no need restart any PAL services).
If your default language is English/US (default for TM1), then NLS (National Language Support) does not apply.
Should to be corrected immediately in the files
<installation path>\webapps\tm1web\scripts\tm1web\standalone\
TM1WebApp.js or TM1WebAppCam.js (if you use CAM)