| Hippo CMS version | v6.05.03 |
| Audience | CMS developers |
How to customize the CMS bootstrap function
This page explains how to override the flowscript function that is used to bootstrap the CMS
Goal
In some use-cases a developer might want to use some custom login functionality. In the easiest case this can be achieved by simply overriding the core functionality, but when things get more complicated you might want to completely implement your own bootstrap mechanism.
How to do it
By default, the CMS uses a function called start which is located at hippoCMS/src/site/editor.js. You can change the name of the bootstrap function by overriding the cms.startup.function build property, like cms.startup.function=startCustom. Then, you will need to create a custom editor.js file in the extensions folder (extensions://editor.js) which should contain the new bootstrap function. This file will be automatically loaded by the CMS if it exists.