[TYPO3] GPvar not a string?

Peter Klein peter at umloud.dk
Tue Feb 20 18:22:15 CET 2007


Hi Benjamin. Try:

page.10.childTemplate.cObject  < lib.formdata.30

And then use the "Template Object Browser" to see if your 
"page.10.childTemplate" holds the correct TS code.

--
Peter Klein / Umloud Untd.

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

I am trying to get a dynamic template to work, I am using TemplaVoila.
See the code below, it is not working.

I can get the template to change if I use globalvar 'switch' statements
and hard code the name inside them and I can get 'GPvar : design' to
display using a Typoscript object set up in TV but I cant get
childtemplate to use the dynamic method I have done below. Are GPvar
variables not of string type? Or is it another problem?

TypoScript
----------------------------------------
lib.formdata.30 = COA_INT
lib.formdata.30 {
  10 = TEXT
  10.data = GPvar : design
}


## Dynamic TemplaVoila! templating [Begin]
[globalVar = GP:design > 0]
page.10.childTemplate  < lib.formdata.30
[global]
## Dynamic TemplaVoila! templating [End]
-----------------------------------------

Thanks,

Ben :)


------------------------
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