[TYPO3] POST variables and

Peter Klein peter at umloud.dk
Sun Feb 18 11:23:02 CET 2007


Hi Benjamin.
Your TS won't work as "page.includeCSS" don't have stdWrap support, so you 
can't pass dynamic values to it.

But you could do this (Untested):

-- cut --
lib.dyncss = COA_INT
lib.dyncss = {
  wrap = <LINK href="|" rel="stylesheet" type="text/css">
  10 = TEXT
  10.data = GPvar : colour
  10.wrap = fileadmin/templates/designs/styles/|.css
}
page.headerData.10 < lib.dyncss
-- cut --

--
Peter Klein / umloud Untd

"Benjamin Todd" <b.todd at emnet.co.uk> wrote in message 
news:mailman.20533.1171642500.21067.typo3-english at lists.netfielders.de...
Hi list,

I am trying to do some dynamic css stylesheet switching and I have run
into difficulty. First up, Typo is caching the TEXT data, which I don't
want it to do as it is from a form variable, and hence is dynamic. The
second problem is TS concatenation. I need to do something like this:

includeCSS = fileadmin/templates/designs/styles/
includeCSS += GPvar : colour
includeCSS += .css

Except in written in TypoScript.

The TS I have at the moment is below

Thanks,

Ben

*****************
TypoScript:
*****************
page.20 = TEXT
page.20.data = GPvar : colour

page.includeCSS.file1 = fileadmin/templates/designs/styles/design2.css
*****************


------------------------
Benjamin Todd
Linux Web Developer

b.todd at emnet.co.uk
EMNET, PO Box 559, Nottingham, NG1 3LB
Tel:  +44 (0)115 956 8260
Fax: +44 (0)115 956 8264

www.emnet.co.uk
Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS

www.emnetsolutions.co.uk
Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS






More information about the TYPO3-english mailing list