[TYPO3-english] v:asset.script in fluidcontent

Nicola Cerchiari nicola.cerchiari at gmail.com
Wed Jun 5 15:47:57 CEST 2013


Hi again everybody,
i'm moving forward in my knowledge journey with fluid and I encoutered
(again) something that I can't understand.

In mi fluidcontent FCE I have these 2 lines (as test):

1) <v:asset.script path="{f:uri.resource(path: 'Javascript/library.js')}"
name="libjs" standalone="1"></v:asset.script>

2) <v:asset.script content="'console.log({arg});'" standalone="1" trim="1"
fluid="1" arguments="{arg: 1}"></v:asset.script>


And I have this result:

1) <script type="text/javascript"
src="typo3conf/ext/[extname]/Resources/Public/Javascript/library.js?1370437683"></script>

2) <script type="text/javascript">


What I don't really get is:

1) First of all, setting fluid="1" and arguments accordingly (changing
the javascirpt too, of course) doesn't have any effect, either in case
1 or 2

2) The second line doesn't show anything else but what I reported as
result 2, what ever I try to set in content attribute.


And now the usual question: What am I missing?


-- 
*Nicola Cerchiari*


More information about the TYPO3-english mailing list