[TYPO3-mvc] Are you able to include CSS/JS and set the title tag from fluid?
Henrik Møller Rasmussen
info at hmrdesign.dk
Wed Dec 2 08:30:12 CET 2009
Steffen Ritter wrote:
> HMR-design // Henrik Møller Rasmussen schrieb:
>> Hello,
>>
>> Are you able to include JS or CSS in a fluid template, or should this
>> be done with PHP or TS as in the old days?
>>
>> Furthermore, are you able to set the <title> tag for a page from
>> fluid, or do you have to set it using $GLOBALS[TSFE] in your action
>> (fx singleAction).
>>
>> Thanks!
>>
>> Best regards
>>
>> Henrik
> You may write a viewhelper for this!
> <myext:setPageTitle>Ich bin der neue Tite: {news.title}
> ({news.autor})</myext.setPageTitle>
>
> inside the viewhelper you could render the childs, put this into the
> pagetitle via TSFE, end return an empty string..
>
> Steffen
Thanks - I will try that next time its extbase/fluid play-time :)
Shouldn't such a viewhelper be included in fluid by default?
Henrik
More information about the TYPO3-project-typo3v4mvc
mailing list