在TS中定义自定义网格元素可以为渲染在col中的texmedia图像设置maxImageSize。因此,在50-50的网格中,可以将最大图像宽度设置为常规最大图像宽度的50%。
columns {
default {
renderObj {
10 = LOAD_REGISTER
10.maxImageWidth = 273
30 = RESTORE_REGISTER
}
}
}
但是,使用fluid_styled_content而不是css_styled_content不能正常工作。有谁知道如何使用带有fluid_styled_content的gridelements进行配置?
您的代码无效,因为fluid_styled_content textmedia元素正在呈现画廊中的图像。如果您在Typo3 7.4以上,则可以使用Gallery Data Processor:
columns {
default {
renderObj {
textmedia {
dataProcessing {
20.maxGalleryWidth = 273
20.maxGalleryWidthInText = 273
}
}
}
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句