Suggestion #28438
Viewhelper to add Javascript to <head>
Status: | New | Start date: | 2011-07-24 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | Tags: |
Description
Put your Javascript to the <head>
As soon as I'm allowed to I will commit it to the repository.
= Examples =
<f:js>
var myJavascriptVar;
myJavascriptFunction();
</f:js>
<output>
<script type="text/javascript">
var myJavascriptVar;
myJavascriptFunction();
</script>
</output>
<f:js path="path/to/my/javascript.js" />
<output>
<script type="text/javascript" src="path/to/my/javascript.js"></script>
</output>
History
#1 Updated by Marco Huber about 4 years ago
Ups, of course this is not a bug. How can I change it to "Feature"?
#2 Updated by Marco Huber about 4 years ago
This Viewhelper has only the _Extension-Folder, because I don't think that we have a $GLOBALS['TSFE'] in FLOW3 ;-)
#3 Updated by Bastian Waidelich about 4 years ago
- Tracker changed from Bug to Suggestion