[Typo3] insert page content in templates?

Kraft Bernhard kraftb at gmx.net
Mon Jun 27 17:18:30 CEST 2005


Anders Carlén wrote:
> [loginUser = *]
> subparts.login_section > plugin.tx_newloginbox_pi1
> [global]

> Have I understood it somewhat right?

You understood it.

And before you think TS is a programming language:

1. Don't nest conditions. i.e. dont:
[loginUser = *]
   [globalString = TSFE:page:title = test 1]
Doesn't work: do when user logged in AND pagetitle = "test 1"


2. Don't use condition inside curly brackets:

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
   ...
   [condition]  <--- DON'T !!!
   ...
}

instead do:

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
   ...
}
[condition]
temp.mainTemplate.subparts.blabla = blabla
[globals]


Just to avoid the beginning confusion I had when started using TS conditions.


greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list