Highlighted
Absent Member.
Absent Member.
7328 views

Importing Custom tailored CSS / JS into SBM templates

We have some requirement for customization of the colors and some other small change in SBM. Until now we were just writing our change into source file, but every upgrade were a pain since we had to compare files one by one for change in SBM sources and adapt our customization to it.

We've now centralized our changes in 2 files custom.js & custom.css that we import in needed templates.

My question is wouldn't it be possible in the upcoming version to find a way for us, users to import a custom style sheet and a custom JS to every templates (without again having to overwrite SBM template file)

In the end of the day we'd like to avoid changing any file written by the installer to ease the upgrade process and minimize upgrade failure risks.

Regards
2 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Importing Custom tailored CSS / JS into SBM templates

A simple solution we use is to add a HTML/Javascript widget to our forms that is a link to our custom css/js. I have attached a picture as an example.

I just include the widget on the form in a panel that is hidden by a form action when the form is loaded
Highlighted
Absent Member.
Absent Member.

Re: Importing Custom tailored CSS / JS into SBM templates

Thanks for your answer, this basically work for in-form styles, but not to change whole SBM color scheme to fit into the company specs. Anyway thanks for your tip very usefull
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.