- Builder
- User interface and Navigation
- Custom Resources Page
Custom Resources Page
Sometimes you may need adding an external files to the application. It can be a jar file to be used by the server-side custom code. It can also be a client-side files, for example, a javascript file, a css file, font or image. Furthermore it can be any other file that you want to be statically accessible within the application. You may add any such files via the Custom Resources page accessible through the left sidebar menu.
Note that access to this feature depends on custom code rights. You need the 'read' permission to review the page and the 'write' permission to make changes.
All added custom resources are set as active by default. However you may deactivate them and this way make them unavailable for your application. Do so instead of temporary deleting and then adding back.
Besides this we have two other configuration options. They are applicable only for the client-side resources, namely for javascript and css files, and enable specifying where the resources should be loaded.
The first option is 'For all web pages'. If it is set on it means that the resource will be added to all application pages. On the other hand if it is possible to specify concrete entity type form(s) instead. For doing this you should select the form and edit corresponding property in the form builder.
The last option is 'Import in head'. Set on it if you want the resource to be loaded in the head section of HTML page. It may be necessary if you want, for example, some javascript file to load and run before the main page content is loaded. Note that activating this option will affect the page load performance and thus is not advisable.
In some cases it can be helpful to access a client-side resource directly. You may do it using this link https://<application domain>/resources/customResources/<file name>. Just substitute <application domain> and <file name> place holders with proper values.