Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->document->addScriptFooter() #3084

Closed
dhaupin opened this issue Jun 5, 2015 · 0 comments
Closed

$this->document->addScriptFooter() #3084

dhaupin opened this issue Jun 5, 2015 · 0 comments

Comments

@dhaupin
Copy link

dhaupin commented Jun 5, 2015

Tons of things require putting scripts into the footer. As it stands, this cannot be achieved unless using a vQmod, which turns footer into an inconsistent pile o scripts that are inserted too early (often before <?php echo $footer; ?> which is the wrong spot). Instead it would be nice to be able to insert via controllers just like the other $this->document methods. Adding would be simple:

public function addScriptFooter($script_footer) {
    $this->scripts_footer[md5($script_footer)] = $script_footer;
}

public function getScriptsFooter() {
    return $this->scripts_footer;
}

Easily defined in footer.php to be called in footer.tpl right before the closing </body>. Again, sorry if its the wrong place, its just a suggestion for an uber useful method.

@dhaupin dhaupin changed the title $this->document-addScriptFooter() $this->document->addScriptFooter() Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants