Suggestion #28438

Viewhelper to add Javascript to <head>

Added by Marco Huber about 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2011-07-24
Due date:
% Done:

0%

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>

JsViewHelper.zip (2.25 KB) Marco Huber, 2011-07-24 23:34

History

#1 Updated by Marco Huber about 8 years ago

Ups, of course this is not a bug. How can I change it to "Feature"?

#2 Updated by Marco Huber about 8 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 8 years ago

  • Tracker changed from Bug to Suggestion

Also available in: Atom PDF