Hi All,
I know that with NodeJs and layouts etc that certain things that might be set up in the Main page might not be accessible in the Layouts page (for instance if you have set up your Notifications in the main page they wont be access able in the UI bindings etc in your layouts)
I have a custom JS file that is loaded in the main page and sometimes a layout page will reference a JS function in that script. Naturally when using the design view in the layout section, the script wont run (it will work fine in the browser though)
This isn’t great for easy development.
Is there a way of including the scripts in the header/includes of the layouts page? Much like we do with the inbuild Wappler components like:
<!-- Wappler include head-page="layouts/main" is="dmx-app" id="people" appConnect="local" jquery_slim_34="local" fontawesome_5pro="local" bootstrap4="local" components="{dmxBootstrap4Collapse:{},dmxFormatter:{},dmxValidator:{},dmxBootstrap4Modal:{},dmxAnimateCSS:{}
etc…
Any thoughts? I did try adding the name of the script file like scriptfile:{}
in the includes above but that didn’t work.