[TYPO3-core] RFC: #9149: Additional Stylesheets in template.php
Martin Kutschker
masi-no at spam-typo3.org
Sun Aug 31 18:57:13 CEST 2008
Benjamin Mack schrieb:
> Hey all,
>
> I thought about the whole thing. I does not make sense to have an extra
> function for this, that is similar to the loadJSlib function:
>
> * Unlike JS libraries, a lot of extensions (most of them, skins) want to
> overwrite the default stylesheets.
>
> * The whole thing is a bit limited right now in template.php with
> $stylesheet, $stylesheet2 and $post_stylesheet. Basically, we'd need an
> assoc. array for that. You fill in the files you need and can also
> override std files. Once you compile the output, you process the array
> and fill in the backPath at that point. This way, we can even use that
> array in the constructor.
But the method is just a way to access this property. Depending on the
OO-school it may even be forbidden to access any property without a
setter/getter method ;-)
The method hides the implementation details so this should be more
forward compatible then a plain array.
Masi
More information about the TYPO3-team-core
mailing list