[TYPO3-english] generate css suffix with cooluri?

Andreas Burg typo3 at andreasburg.de
Fri Oct 10 13:51:42 CEST 2008


Hello all and espacially Jan,

is it possible to generate the ending ".css" just for one file? Situation is as follows. (and works, 
but is unattractive)

In my project in BEs filetree I generate a file named "style". This file I include in my project with ->

page.headerData.998 = TEXT
page.headerData.998.value = <link rel="stylesheet" type="text/css" href="style.html" />


## The TS-Template-Setup of page "style" looks as follows ##
## Options => clear Constants, clear Setup ##
## including some constants with basic templates ##

## TS-setup ##
config >
plugin >
includeLibs >

page = PAGE
page {
   typeNum = 0
   config{
     additionalHeaders = Content-type: text/css
     disableAllHeaderCode = 1
   }
   10 = TEMPLATE
   10.template = FILE
   10.template.file = {$path}mystyle.css

   10.marks {
     backColor       = TEXT
     backColor.value = {$backColor}
     fontColor       = TEXT
     fontColor.value = {$fontColor}
   }
   20 < .10
   20.template.file = {$path}menu.css
   30 < .10
   30.template.file = {$path}tt_news.css
   40 < .10
   40.template.file = {$path}th_mailformplus.css
   50 < .10
   50.template.file = {$path}ve_guestbook.css
}
## ------------------------------------------- ##

That all works great except the unattractive suffix ".html".

BTW I have to set mypage.de at style => id=492 => sticky
I think 'cause I have a multilanguage project. And I don't want to have a css for every language.

[My CSS-files look something like this:
body {
   color: ###fontColor###;
   background: ###backColor###;
)]

So my question again, can I generate the ending ".css" just for this page "style"? So I can include 
this file like:
page.headerData.998.value = <link rel="stylesheet" type="text/css" href="style.css" />

thank you

Andreas


More information about the TYPO3-english mailing list