[TYPO3-english] FluidTemplate, backend layouts and maxImageWidth

Viktor Livakivskyi v-tyok at mail.ru
Tue Aug 28 15:28:08 CEST 2012


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. 



More information about the TYPO3-english mailing list