[TYPO3-english] Max image width constant

Victor Livakovsky v-tyok at mail.ru
Thu Nov 17 14:00:23 CET 2011


Hi, Stephen.

My preffered way is:
################################################
# Different MaxW for different columns
################################################
tt_content.image.20 {
  maxW >
  maxW.cObject = CASE
  maxW.cObject {
    key.field = colPos
    0 = TEXT
    0.value = {$styles.content.imgtext.maxWNormal}
    1 = TEXT
    1.value = {$styles.content.imgtext.maxWLeft}
    2 = TEXT
    2.value = {$styles.content.imgtext.maxWRight}
  }
}

Surely, you need to define styles.content.imgtext.maxWNormal, 
styles.content.imgtext.maxWLeft, styles.content.imgtext.maxWRight in your TS 
constants. 



More information about the TYPO3-english mailing list