有没有一种方法来调整和使用typoscript在“文本和图像”元素中裁剪图像?TYPO3图像调整大小和作物
我已经在过去使用此设置图像布局给定制包装到仅图像元素:
# Get default settings for images
temp.image < tt_content.image.20
# Define new layout
tt_content.image.20 = CASE
tt_content.image.20 {
key.field = layout
default < temp.image
1 < temp.image
100 < temp.image
100 {
imageStdWrap.dataWrap = <div class="gallery"><ul>|</ul></div>
renderMethod = ul
rendering {
ul {
oneImageStdWrap.dataWrap = <li>|</li>
}
}
layout.default.value = ###IMAGES###
}
}
# Set defaults also for TEXTPIC
tt_content.textpic.20 = < tt_content.image.20.default
有没有办法或许修改此相同的技术包括一组宽度和高度?
我知道我可以使用这个:https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Imgresource/Index.html但我不知道把它放在哪里才能使它工作? – user500665
我尽量使用错字脚本,就像你有它,但它没有效果? – user500665
看一下TSOB(TypoScriptObjectBrowser)。您可能会在tt_content.image.20.1.file.width处发现另一个宽度属性,这可能还需要覆盖。 –