[TYPO3-german] Re: Re: Re: Paginierung / automatisch Seitenzählen
Christoph Dahlen
christoph at dahlen.org
Sat Apr 14 09:49:24 CEST 2007
JoH asenau schrieb:
>>> Wirklich lesbar wird es durch
>>> diese Einschränkung aber nicht.
>>>
>> Das ist richtig, ärgert mich auch. Aber es funktioniert. :-D Und das
>> ist ja erstmal die Hauptsache...
>
> subparts.content = COA
> subparts.content {
> 20 < styles.content.get
> }
>
> [PIDinRootline = 9]
> subparts.content {
> 10 = TEXT
> 10.value = XXXX
> }
> [global]
>
> Wo genau ist doch gleich das Lesbarkeitsproblem?
Das subparts.content selber schon in einer Klammerung zweitere Ebene
liegt und je nach Komplexität die Condition nicht mal mehr im
Sichtbarkeitsbereich liegt.
Evtl. könnte man das umformulieren, und mit einem temporären Objekt
arbeiten, etwa so
temp.pages >
[PIDinRootline = 9]
temp.pages = HMENU
temp.pages {
....
}
[global]
und dann später im subpart.content COA temp.pages immer zuweisen. Ein
leeres cObject dürfte ja nichts ausmachen, oder?
> Joey
Christoph
More information about the TYPO3-german
mailing list