[TYPO3-core] RFC #13074: Feature: stdWrap for inclusion of CSS and JS files via pageRenderer

Steffen Gebert steffen at steffen-gebert.de
Mon Jan 25 21:42:19 CET 2010


Am 10.01.2010, 14:08 Uhr, schrieb Susanne Moog <typo3 at susannemoog.de>:
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13074
>
> Problem:
> From the bugtracker:
> "It should be useful to have a stdwrap properties in page.includeJS
> includeCSS includeFooterJS ... to be able to use "if" conditions in
> every file included.
> For example it's very common to load a JS/CSS lib if you insert a FCE,
> you could use page.headerData but it isnt as clean as includeJS"

Hi Susanne,

you need this for conditional comments, don't you?
Or do you have any other ideas, what could be done with it?

I think we could also add just an option, which results into a specific  
conditional comment.

But as it works and as stdWrap never hurts, +1 by reading and testing

Steffen

P.S: What I like very much is the idea of a $param array (often seen in JS  
frameworks). So you don't have functions with countless parameters, but a  
config array, which is passed.
So it's easier, to call the function e.g. set stdWrap, but not the allWrap.
But I don't know, if we want this revolutionary concept in TYPO3 ;)


More information about the TYPO3-team-core mailing list