[TYPO3] AutomakeTemplate & TemplaVoila: How to change sequence of dynamic/static css-files

Bert Hiddink hiddink at bendoo.com
Mon Jun 26 12:50:39 CEST 2006


Hi, Dimitry!

Thanks for your reply!

Dmitry Dulepov wrote:
> Hi!
> 
> Bert Hiddink wrote:
>> As you see the static css-file ("screen-alt.css") is printed AFTER the 
>> dynamicly created CSS-file ("stylesheet_bb37f3f610.css"). However, I 
>> would like the link to the static one to be rendered first so that 
>> from the dynamic CSS, I can override CSS-definitions through TS-code.
> 
> No, temp css file always go first. This gives opportunity to override 
> ant default styles with your own. 

That was exactly what I was aiming for...

> I think it is hardcoded and cannot be 
> changed.

Mmmm, I do not think you are right here.
Changing the TS a bit did the job:
[...]
page = PAGE
page.typeNum = 0
page.stylesheet = {$relPath}{$StylesheetName}
page.bodyTag = <body>
page.meta.description.field = description
page.meta.keywords.field = keywords

###CSS_EDITOR STYLE INFORMATION MARKER - begin ###
page.CSS_inlineStyle (
  .superHeader { color: rgb(130,128,154); background-color: #ccc; 
text-align: right; margin: 0; padding: 0.5ex 10px;  }
)
###CSS_EDITOR STYLE INFORMATION MARKER - end ###

page.10 < temp.mainTemplate
[...]

The above renders:
[...]
	<link rel="stylesheet" type="text/css" 
href="typo3temp/stylesheet_e99aac0be0.css" />
	<link rel="stylesheet" type="text/css" 
href="fileadmin/templates/coneecta_desarrollo/screen-alt.css" />
	<link rel="stylesheet" type="text/css" 
href="typo3temp/stylesheet_a7ac7c6af6.css" />
	<title>Coneecta Desarollo</title>

	<meta name="generator" content="TYPO3 4.0 CMS" />
	<script type="text/javascript" 
src="typo3temp/javascript_757c080409.js"></script>
</head>
<body>
[...]

So now my dynamic CSS comes AFTER the static one which permits me to 
OVERRIDE the default CSS-definitions.

Thanks anyway!!

grt,
-brt

-- 
Bert Hiddink
hiddink at bendoo.nl
BENDOO e-work solutions
http://www.bendoo.nl
Harterinkdijk 8, 7065 AR SINDEREN
The Netherlands
Tel. 0315 244525



More information about the TYPO3-english mailing list