[TYPO3-core] RFC: #9149: Additional Stylesheets in template.php

Benjamin Mack benni at typo3.org
Mon Aug 11 02:56:39 CEST 2008


Hey Steffen,

very nice work!

Some things:

1. I'd like to have an interface similar to loadJavascriptLib() called 
"addStylesheet()". What do you think? (It's just an idea) :)

2. could we make it so that styleSheetFile1 and styleSheetFile2 are 
merged to that new array so that we can phase these variables out (maybe 
set them to deprecated and rewrite e.g. t3skin to use the new 
interface). What do you think?

greetings from Montana :)
benni.
-SDG-

Steffen Kamper wrote:
> Hi,
> 
> This is an SVN patch request.
> 
> Type: Feature
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=9149
> 
> Branches: trunk
> 
> Problem:
> When writing a BE modul there is the possibility to add any JS-Files to 
> doc header using $this->doc->loadJavascriptLib()
> 
> Such adding is missing with CSS-files. There are only 3 predefined 
> stylesheets which can be overwritten
> 
> Solution:
> I added an array to add stylesheets, in template they will be inserted 
> after styleSheetFile and styleSheetFile2. This gives the possibility to 
> add any CSS-files to the header
> 
> Additional:
> In the project for Dashboard such adding is needed as any submodule can 
> come along with own stylesheet.
> 
> vg Steffen
> 


More information about the TYPO3-team-core mailing list