How can I include JS libraries hosted on an external source?
In other words: where do I have to add <script></script> tags so that the included library will be available for every controller?
Is it possible to extend the index.html manually?
Hello Klaus,
you can create a Library and in the Include Script you can extend the header as followed.
addAfterInitHandler( function() { var script = $(‘<script>’) .attr(‘type’,’text/javascript’) .attr(‘src’, ‘https://maps.googleapis.com/maps/api/js?key=yourkey’); $(‘head’).append(script); });
You must be logged in to reply to this topic.
Gib die Ziel-URL ein
Oder verlinke auf bestehende Inhalte