[TYPO3-mvc] View Helper for including JS/CSS
Steffen Ritter
info at rs-websystems.de
Mon Jun 15 16:46:23 CEST 2009
Sebastian Kurfürst schrieb:
> Hi Steffen,
>
>> I meant: if I use f:inlcude:js or f:cdata I wanna use ViewHelpers
>> inside. For example
> Now I understand it :-)
>
>> So my question was: do I have to do something special that viewheplers
>> inside others are always processed?
> Nope, they are always processed automatically. When you call
> $this->renderChildren() inside your ViewHelper you get back the rendered
> content.
>
> Greets,
> Sebastian
Heres a ViewHelper including JavaScript...
Quite Simple, but it works :P
Patch Against current fluid Trunk
regards
Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: JSViewHelper.diff
Url: http://lists.netfielders.de/pipermail/typo3-project-typo3v4mvc/attachments/20090615/120bcdb5/attachment.txt
More information about the TYPO3-project-typo3v4mvc
mailing list