[TYPO3-mvc] Are you able to include CSS/JS and set the title tag from fluid?

Steffen Ritter info at rs-websystems.de
Tue Dec 1 23:34:47 CET 2009


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


More information about the TYPO3-project-typo3v4mvc mailing list