[Typo3-german] Contitions von colPos ?
JoH
info at cybercraft.de
Tue Sep 6 08:53:39 CEST 2005
> habe das Problem das jenachdem ob es Inhalt in der Rechten Spalte
> gibt oder nicht ein anderes Html-Template geladen werden soll, wie
> lauten die Contition für die rechte spalte oder geht das nur über
> eine if abfrage und wie würde die dann aussehen?
Weder noch ;-)
> dachte mir das so:
> [colPos = 2]
> template.file = fileadmin/templates/maintemplate.html
> [else]
> template.file = fileadmin/templates/maintemplate2.html
> [globals]
>
> naja oder so ähnlich, aber denk mal es funktioniert nicht so, kann
> mir einer einen Tipp geben?
temp.templateswitch = CASE
temp.templateswitch {
key.field = colPos
default = TEMPLATE
default {
template = FILE
template.file = maintemplate2.html
blah2
blubb2
}
2 = TEMPLATE
2 {
template = FILE
template.file = maintemplate.html
blah
blubb
}
}
Den Rest kannst Du Dir sicherlich selbst zusammenreimen.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau
More information about the TYPO3-german
mailing list