Typo3 类型3多列图像收缩

Typo3 类型3多列图像收缩,typo3,typoscript,multiple-columns,Typo3,Typoscript,Multiple Columns,我对多列imageshrink函数有一个问题 有一个三列布局,其中imageshrink函数(第一列)工作正常。但在我的两列布局中,收缩功能似乎可以工作,但imagewidth始终是450px,但if必须是280px。有什么想法吗 TSConfig根目录页: tx_multicolumn.layoutPreset > tx_multicolumn.layoutPreset { # Define a unique key for the layout twoColumnLayout {

我对多列imageshrink函数有一个问题

有一个三列布局,其中imageshrink函数(第一列)工作正常。但在我的两列布局中,收缩功能似乎可以工作,但imagewidth始终是450px,但if必须是280px。有什么想法吗

TSConfig根目录页:

tx_multicolumn.layoutPreset >
tx_multicolumn.layoutPreset {

# Define a unique key for the layout
twoColumnLayout {

# Backend label (path to a locallang file)
label = 2 Spalten

# Icon (file resource or a path to fileadmin)
icon = fileadmin/layout/images/multi2spalten.png

config {

  #Width of multicolumn container (px or %)
  containerMeasure = px

  containerWidth = 900

  # Number of columns(integer)
  columns = 2

  # Column measure (px or %)
  columnMeasure = px

  # Column width (integer, optionSplit)
  columnWidth = 580 |*| 280

  # Column margin (string, optionSplit)
  columnMargin = 0 20px 0 0 |*| 0 0 0 0

  # Disable auto image shrink for columns (boolean, 0)
  disableImageShrink = 0

  }
}


# Define a unique key for the layout
threeColumnLayout {

# Backend label (path to a locallang file)
label = 3 Spalten

# Icon (file resource or a path to fileadmin)
icon = fileadmin/layout/images/multi3spalten.png

config {

  #Width of multicolumn container (px or %)
  containerMeasure = px

  containerWidth = 900

  # Number of columns(integer)
  columns = 3

  # Column measure (px or %)
  columnMeasure = px

  # Column width (integer, optionSplit)
  columnWidth = 300 |*| 260 |*| 260

  # Column margin (string, optionSplit)
  columnMargin = 0 20px 0 0 |*| 0 20px 0 0 |*| 0 0 0 0

  # Disable auto image shrink for columns (boolean, 0)
  disableImageShrink = 0

  }
}
}
主模板常数:

styles.content.imgtext.colPos0.maxW = 280
styles.content.imgtext.colPos1.maxW = 280
styles.content.imgtext.colPos2.maxW = 280
styles.content.imgtext.colPos3.maxW = 280
主模板设置:

tt_content.image.20.maxW.cObject = CASE
tt_content.image.20.maxW.cObject {
key.field = colPos
## Normal
0 = TEXT
0.value = 280
## Left
1 = TEXT
1.value = 280
## Right
2 = TEXT
2.value = 280
## Border
3 = TEXT
3.value = 280
}

我自己找到了解决办法,不过还是要谢谢你

以下是解决方案:

我将containerMeasure设置为%而不是px,将containerWidth设置为100。


就这些,现在心理医生工作得很好

请添加以下打字稿设置:

tt_content.image.20.maxW = 280px

您是否签入了打字稿对象浏览器?是的,但我不知道450px的定义在哪里:/好吧,我发现了:他取集装箱宽度的900px,并用列数进行划分,但为什么他不取我定义的列宽度?