[TYPO3] GPvar not a string?

Benjamin Todd b.todd at emnet.co.uk
Tue Feb 20 14:09:33 CET 2007


Hi Dmitry,

Thank you for explaining that to me :)

The method I have that is working is:

TyposScript
------------------------------
[globalVar = GP:design = 1]
page.10.childTemplate = 1
[global]
[globalVar = GP:design = 2]
page.10.childTemplate = 2
[global]
------------------------------

But I want it to use the variable directly so I don't have to write
extra TS for ever new template I add to the site. I've tried this and it
doesn't work:

TyposScript
------------------------------
[globalVar = GP:design > 0]
page.10.childTemplate = GPvar : design 
[global]
------------------------------

Any help is most appreciated.

Thank you,

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
 
 

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Dmitry
Dulepov
Sent: 20 February 2007 10:49 AM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] GPvar not a string?

Hi!

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

<skip>

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

childTemplate is a simple string property. It does not accept content 
objects. So, TV will see "COA_INT", not value of GPvar.

-- 

Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Scanned for viruses by MailDefender


More information about the TYPO3-english mailing list