Hi, I couldnt find any solution for this. I am loading multiple javascript files in my template:
scripts[] = js/swiper-bundle.min.js scripts[] = js/custom-apps.js scripts[] = js/custom-leaflet.js ... Some of the files I want to render in the header and some in the footer.
But this doesnt work:
scripts["header"] = js/swiper-bundle.min.js scripts["footer"] = js/custom-apps.js scripts["footer"] = js/custom-leaflet.js
<?php print backdrop_get_js('header'); ?> <?php print backdrop_get_js('footer'); ?>
Hello @webtransformer 👋
Have you tried https://api.backdropcms.org/api/backdrop/core%21includes%21common.inc/fu... ?
I believe that something like this would work:
Please give that a go and let us know how it goes.