contao/test — Issue #1052: Inserting Javascript Into the head of a page (wihtout outputFrontendTemplate & replaceInsertTags)
Author: importer
Created: 2011-11-29 07:17:00+00:00
State: open
Labels: Feature

Hi Leo,

My mapping module currently requires that I create a slightly modified Page class to handle additional inline Javascript which is used for Google Maps API. While this works fine, it is not as flexible as it could be. If I could (optionally) set my module up to drop additional inline Javascript in specifically for that module, perhaps by adding to a GLOBAL array similar to TL_HEAD (but specifically for Javascript), then I would not require admins/users to have to set the page to use my custom one. This would avoid additional setup knowledge required of the user. In addition, I could easily modify the Javascript rendering to handle certain values specific to the module and not just the page. It would be ideal not requiring users to have to modify/use a custom template to handle an insert tag to achieve this.

Thanks for you hard work!

Fred

--- _Originally created by fbliss on October 4th, 2009, at 07:46pm (ID 1052)_