Hi, Sergey.

I think, you can use CASE object here.
tt_content.image.20 {
 maxW >
 maxWInText >
 maxW.cObject = CASE
 maxW.cObject {
   key.data = levelfield:-1, backend_layout_next_level, slide
   key.override.field = backend_layout
   1 = TEXT
   1.value = 480
   2 = TEXT
   2.value = 640
 }

 maxWInText < .maxW
 maxWInText {
   0.value = 240
   1.value = 320
 }
}

For different widthes in different columns, you may use nested CASE with key.field = colPos

Advantage od such a method in comparance to conditions:
1) less conditions - less evaluations before output;
2) you can use "Next Level" backend layout and all subpages will inherit image width, when condition will work for current page only - not for subpages.
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to