[TYPO3-german] TS Problem - CASE auf tt_content.image <-> gridelements

Jo Hasenau info at cybercraft.de
Thu Aug 28 23:19:15 CEST 2014


> ich passe das renderObj in gridelements columns an um ein automatisches
> cropping von Bildinhalten zu erreichen:
>
> tt_content.image.20 {
>    1.file.width.field >
>    1.file.height.field >
> }
>
 >
>        0.renderObj.20.image.20.1.file {
>
> Das funktioniert wunderbar.
>
> Das lib Object wird nun über eine Section Frame Auswahl aktiv:
>
> temp.imagesetup < tt_content.image.20
>
> tt_content.image.20 >

Ich hab das mal auf die wichtigen Zeilen reduziert ;-)

Knackpunkt ist: Gridelements arbeitet im Default-Setup mit einer 
Referenz auf tt_content und nicht mit einer Kopie. Dort steht also nicht 
< tt_content sondern =< tt_content

Daher wird alles, was Du aus tt_content entfernst, dort ebenfalls 
entfernt. Also auch der komplette Block tt_content.image.20, der danach 
nur teilweise wiederhergestellt wird.

Wenn Du das anders machen möchtest, musst Du an der Stelle mit einer 
Kopie arbeiten, was aber den Speicherverbrauch und die Parsetime 
drastisch erhöhen dürfte.

HDH

Joey

-- 
Diversity:
Die Kunst zusammen unabhängig zu denken
The art of thinking independently together.
--
Facebook: https://www.facebook.com/johasenau
Twitter: http://twitter.com/bunnyfield
Xing: http://contact.cybercraft.de
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-german mailing list