[英]How to tell css_styled_content to properly resize images
I think I am experiencing this ages-old behaviour in a TYPO3 6.1 site http://forge.typo3.org/issues/15522 我认为我在TYPO3 6.1网站http://forge.typo3.org/issues/15522中遇到了这种古老的行为
As soon as there is more than one image in a textpic field, this TypoScript 一旦textpic字段中有多个图像,此TypoScript
tt_content.image.20.maxWInText = 300
will produce very small images - their size is the given rendering size divided by number of images. 将产生非常小的图像-它们的大小是给定的渲染大小除以图像数量。
So with three images in a textpic element, this will give me three 100px wide images. 因此,在textpic元素中包含三个图像时,这将为我提供三个100px宽的图像。
How can this be set to work normally (value 300 applied to each image?) 如何将其设置为正常工作(将值300应用于每个图像?)
EDIT: I'm posting the full config I've been using: 编辑:我发布了我一直在使用的完整配置:
imgWidth=CASE
imgWidth{
key.field = header_layout
default=TEXT
default.value=1000
1=TEXT
1.value=1000
2=TEXT
2.value=500
3=TEXT
3.value=300
4=TEXT
4.value=500
5=TEXT
5.value=300
6=TEXT
6.value=500
7=TEXT
7.value=300
8=TEXT
8.value=0
9=TEXT
9.value=0
10=TEXT
10.value=150
10=TEXT
10.value=1000
}
tt_content.image.20.maxWInText.cObject < imgWidth
tt_content.image.20.maxW.cObject < imgWidth
This setting is supposed to affect the width occupied by all images in a column. 假定此设置会影响一列中所有图像占用的宽度。 Therefore it must effect all images.
因此,它必须影响所有图像。
You should take a look at 你应该看看
tt_content.image.20.maxW
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.