[TYPO3-german] Bedingungen, Datenbankspalten und Templates
Patrick Rodacker
patrick.rodacker at the-reflection.de
Tue May 30 18:04:07 CEST 2006
Hallo Robert,
robert moszczynski wrote on 30.05.2006 17:00:
> Ich habe ein Plugin geschrieben der eine Spalte für page
> zugefügt hat: hideRightBox.
> Das Feld kann entweder 0 oder 1 sein.
>
> Ich will jetzt in TS sagen dass wenn hideRightBox 0 ist,
> dann soll ein Template verwendet werden, wenn aber 1
> dann ein anderer.
>
Schau mal in die TSRef [1] bei Conditions unter 'globalVars'. Das wird
in deinem Fall dann wohl so ungefähr aussehen:
template = TEMPLATE
template.file = fileadmin/template/templateMain_0.html
[globalVar = TSFE:page|hideRightBox = 0]
template.file = fileadmin/template/templateMain_1.html
[globalVar = TSFE:page|hideRightBox = 1]
template.file = fileadmin/template/templateMain_2.html
[global]
HTH
Patrick
[1]
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/4/1/
More information about the TYPO3-german
mailing list