[TYPO3-english] Include stylesheet from an extension

Oliver Klee typo3-german-02 at oliverklee.de
Thu Oct 22 11:53:47 CEST 2009


Hi,

Tomiţă MILITARU schrieb:
> I'm making my own extension with Kickstarter and I need on the page that the
> plugin is included to include on that page a certain stylesheet.
> I've tried to put in the extension's Typoscript code:
> page.includeCSS {
>   file1 = http://domain.com/css/style.css
>   file1.title = main_stylesheet
> }
> But has no effect. Any ideas?

That's what I do in one of my extensions:

page {
	includeCSS {
		tx_seminars_pi1 = EXT:seminars/pi1/seminars_pi1.css
	}
	includeJS {
		tx_seminars_pi1 = EXT:seminars/pi1/tx_seminars_pi1.js
	}
}

So these are just strings with file paths.


Oliver


More information about the TYPO3-english mailing list